surtur
6e267e702b
* this allows us to use a separate Dockerfile for debug builds * new Makefile targets have been added and definitions have been somewhat simplified
16 lines
371 B
Docker
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"]
|