pwt-0x01-ng/Dockerfile.dev
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

15 lines
306 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 Debug
ENV ASPNETCORE_ENVIRONMENT=Development
ENTRYPOINT ["dotnet", "watch", "run", "--no-restore", "--urls", "http://0.0.0.0:5000"]