Skip to content

Commit a77eeaa

Browse files
committed
dockerfile: use dotnet publish instead of deprecated build -o
1 parent 50b1a0f commit a77eeaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN dotnet restore
88

99
# Copy source code and build
1010
COPY . ./
11-
RUN dotnet build -c Release -o out
11+
RUN dotnet publish Cliptok.csproj -c Release --property:PublishDir=$PWD/out
1212

1313
# We already have this image pulled, its actually quicker to reuse it
1414
FROM mcr.microsoft.com/dotnet/sdk:9.0.100 AS git-collector

0 commit comments

Comments
 (0)