Skip to content

Commit dfec593

Browse files
committed
Dockerfile optimization
1 parent 5f9b487 commit dfec593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY *.props .
77

88
RUN dotnet restore ./Api/Api.csproj
99

10-
RUN dotnet publish ./Api/Api.csproj -c Release -o /app/publish
10+
RUN dotnet publish ./Api/Api.csproj -c Release --no-restore -o /app/publish /p:UseAppHost=false
1111

1212
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine
1313

0 commit comments

Comments
 (0)