Skip to content

Commit

Permalink
Bump .NET versions in dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Feb 12, 2024
1 parent 96c8392 commit f8b38ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions osu.Server.DifficultyCalculator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

# Handle project files and dependencies first for caching benefits
Expand All @@ -16,7 +16,7 @@ RUN dotnet publish -c Release -o out
RUN rm -rf ./out/runtimes ./out/osu.Game.Resources.dll

# Build runtime image
FROM mcr.microsoft.com/dotnet/runtime:6.0
FROM mcr.microsoft.com/dotnet/runtime:8.0
WORKDIR /app
COPY --from=build-env /app/osu.Server.DifficultyCalculator/out .
ENTRYPOINT ["dotnet", "osu.Server.DifficultyCalculator.dll"]
4 changes: 2 additions & 2 deletions osu.Server.Queues.BeatmapProcessor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

# Handle project files and dependencies first for caching benefits
Expand All @@ -16,7 +16,7 @@ RUN dotnet publish -c Release -o out
RUN rm -rf ./out/runtimes ./out/osu.Game.Resources.dll

# Build runtime image
FROM mcr.microsoft.com/dotnet/runtime:6.0
FROM mcr.microsoft.com/dotnet/runtime:8.0
WORKDIR /app
COPY --from=build-env /app/osu.Server.Queues.BeatmapProcessor/out .
ENTRYPOINT ["dotnet", "osu.Server.Queues.BeatmapProcessor.dll"]

0 comments on commit f8b38ae

Please sign in to comment.