DEVOPS'd
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-07-13 04:03:45 +02:00
parent 256257d394
commit 0da67c4717
3 changed files with 0 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
WORKDIR /app
COPY *.sln ./
COPY OD.WebApplication/*.csproj OD.WebApplication/
RUN dotnet restore
COPY . ./
RUN dotnet publish -c Release -o out --no-restore
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 as base
WORKDIR /app
ENV ASPNETCORE_ENVIRONMENT=Production
COPY --from=build-env /app/out .
RUN mkdir -p logs
EXPOSE 80 443
ENTRYPOINT ["dotnet", "OD.WebApplication.dll"]