File tree 1 file changed +5
-6
lines changed
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
2
2
FROM mcr.microsoft.com/dotnet/sdk:9.0-nanoserver-$TAG AS build
3
3
4
4
WORKDIR /source
@@ -7,11 +7,10 @@ WORKDIR /source
7
7
COPY . .
8
8
WORKDIR /source/main/GarnetServer
9
9
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
15
14
16
15
# Final stage/image
17
16
FROM mcr.microsoft.com/dotnet/runtime:8.0-nanoserver-$TAG AS runtime
You can’t perform that action at this time.
0 commit comments