Skip to content

Commit

Permalink
Upgrade image to 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Feb 25, 2024
1 parent 6eb712b commit ff19d41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0-bookworm-slim as build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim as build-env
WORKDIR /App

COPY . ./
RUN dotnet restore
RUN dotnet publish -c Release --framework net7.0

FROM mcr.microsoft.com/dotnet/runtime:7.0-bookworm-slim
FROM mcr.microsoft.com/dotnet/runtime:8.0-bookworm-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
Expand Down Expand Up @@ -48,8 +48,8 @@ COPY socat_wrapper.py socat_wrapper.py
# EXPOSE $GAMEPORT/udp
# EXPOSE $QUERYPORT/udp

COPY --from=build-env /App/SteamKit/SteamKit2/SteamKit2/bin/Release/net7.0/ .
COPY --from=build-env /App/DedicatedServer/bin/Release/net7.0/ .
COPY --from=build-env /App/A2SServer/bin/Release/net7.0/ .
COPY --from=build-env /App/SteamKit/SteamKit2/SteamKit2/bin/Release/net8.0/ .
COPY --from=build-env /App/DedicatedServer/bin/Release/net8.0/ .
COPY --from=build-env /App/A2SServer/bin/Release/net8.0/ .

CMD ["bash", "./run_servers.sh"]

0 comments on commit ff19d41

Please sign in to comment.