switch cmd to entrypoint

This commit is contained in:
marcel-dempers 2019-08-13 22:45:10 +00:00
parent c42c5f9c27
commit a0d7e2ad36

View File

@ -15,7 +15,8 @@ COPY ./src/ /work/
RUN mkdir /out/
RUN dotnet publish --no-restore --output /out/ --configuration Release
CMD dotnet run
ENTRYPOINT ["dotnet", "run"]
###########START NEW IMAGE###########################################
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim as prod