Skip to content

Commit a0d7e2a

Browse files
switch cmd to entrypoint
1 parent c42c5f9 commit a0d7e2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

c#/dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ COPY ./src/ /work/
1515
RUN mkdir /out/
1616
RUN dotnet publish --no-restore --output /out/ --configuration Release
1717

18-
CMD dotnet run
18+
ENTRYPOINT ["dotnet", "run"]
19+
1920
###########START NEW IMAGE###########################################
2021

2122
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim as prod

0 commit comments

Comments
 (0)