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

17 lines
385 B
Docker
Raw Normal View History

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
WORKDIR /src
COPY global.json ./
RUN sed -i 's/3.1.110/3.1.404/' global.json
COPY *.csproj ./
RUN dotnet restore
COPY . ./
RUN sed -i 's/3.1.110/3.1.404/' global.json
RUN dotnet build -c Debug -o bin/out
ENV ASPNETCORE_ENVIRONMENT=Development
ENTRYPOINT ["dotnet", "watch", "run", "--no-restore", "--urls", "http://0.0.0.0:5000"]