File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1- ARG TAG=ltsc2022
1+ ARG TAG=ltsc2025
22FROM mcr.microsoft.com/dotnet/sdk:9.0-nanoserver-$TAG AS build
33
44WORKDIR /source
@@ -7,11 +7,10 @@ WORKDIR /source
77COPY . .
88WORKDIR /source/main/GarnetServer
99
10- RUN dotnet restore
11- RUN dotnet build -c Release -p:EnableSourceLink=false -p:EnableSourceControlManagerQueries=false
12-
13- # Copy and publish app and libraries
14- RUN dotnet publish -c Release -o /app -r win-x64 --self-contained false -f net8.0 -p:EnableSourceLink=false -p:EnableSourceControlManagerQueries=false
10+ # Restore, build, and publish
11+ RUN dotnet restore && \
12+ dotnet build -c Release -p:EnableSourceLink=false -p:EnableSourceControlManagerQueries=false && \
13+ dotnet publish -c Release -o /app -r win-x64 --self-contained false -f net8.0 -p:EnableSourceLink=false -p:EnableSourceControlManagerQueries=false
1514
1615# Final stage/image
1716FROM mcr.microsoft.com/dotnet/runtime:8.0-nanoserver-$TAG AS runtime
You can’t perform that action at this time.
0 commit comments