Skip to content

Commit 594af30

Browse files
committed
fix(build): target specific project in docker publish to avoid warnings
1 parent 163aa22 commit 594af30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WORKDIR /src
77
COPY . .
88

99
# Restore and publish the application as a self-contained executable
10-
RUN dotnet publish -c Release -o /app/publish --runtime win-x64 --self-contained true
10+
RUN dotnet publish src/WinHome.csproj -c Release -o /app/publish --runtime win-x64 --self-contained true
1111

1212
# Final image - using a fuller Windows image for better compatibility with package managers
1313
FROM mcr.microsoft.com/windows/server:ltsc2022 AS final

0 commit comments

Comments
 (0)