This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
pwt-0x01-ng/Dockerfile.dev
surtur 6e267e702b
feat: add Dockerfile.dev + update Makefile
* this allows us to use a separate Dockerfile for debug builds
* new Makefile targets have been added and definitions have been
  somewhat simplified
2020-11-26 02:23:50 +01:00

16 lines
371 B
Docker

FROM mcr.microsoft.com/dotnet/core/sdk:2.1-alpine
COPY . /src
WORKDIR /src
RUN sed -i 's/2.1.519/2.1.811/' global.json
RUN dotnet --version && dotnet --info
RUN dotnet clean
RUN dotnet restore "pwt-0x01-ng.csproj"
RUN dotnet build -c Debug
ENV ASPNETCORE_ENVIRONMENT=Development
ENTRYPOINT ["dotnet", "watch", "run", "--no-restore", "--urls", "http://0.0.0.0:5000"]