pwt-0x01-ng/Dockerfile
surtur 3f775a110b
fix: clean build after restore
* this fixes occasional situation when NuGets have not been restored yet
  but the clean build already running required them, which resulted a
  failed build
2020-11-29 21:08:11 +01:00

18 lines
391 B
Docker

FROM mcr.microsoft.com/dotnet/core/sdk:2.1-alpine
COPY . /src
WORKDIR /src
RUN dotnet --version && dotnet --info
RUN dotnet restore
RUN dotnet clean
RUN dotnet build -c Release
FROM mcr.microsoft.com/dotnet/aspnet:2.1
# debug drone
RUN pwd
COPY --from=0 /src/bin/Release/netcoreapp2.1/publish/ App/
WORKDIR /App
ENV ASPNETCORE_ENVIRONMENT=Release
ENTRYPOINT ["dotnet", "pwt-0x01-ng.dll"]