Skip to content

Commit 8ac3bde

Browse files
Wannes GennarWannes Gennar
authored andcommitted
chore: update Dockerfile
1 parent 1aad7aa commit 8ac3bde

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/Helldivers-2-API/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
FROM alpine:latest AS base
1+
FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-alpine AS base
22
USER $APP_UID
33
WORKDIR /app
44

55
FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine-aot AS build
6-
RUN apk add --upgrade --no-cache build-base clang zlib-dev
76
ARG BUILD_CONFIGURATION=Release
8-
ARG BUILD_RUNTIME=linux-musl-x64
7+
ARG BUILD_RUNTIME=linux-x64
98
ARG OPENAPI=false
109
ARG VERSION=0.0.0
1110

@@ -35,9 +34,9 @@ RUN dotnet build "Helldivers-2-API.csproj" --no-restore -r $BUILD_RUNTIME -c $BU
3534

3635
FROM build AS publish
3736
ARG BUILD_CONFIGURATION=Release
38-
ARG BUILD_RUNTIME=linux-musl-x64
37+
ARG BUILD_RUNTIME=linux-x64
3938
ARG VERSION=0.0.0
40-
RUN dotnet publish "Helldivers-2-API.csproj" /p:Version="$VERSION" --no-restore --self-contained -r $BUILD_RUNTIME -c $BUILD_CONFIGURATION -o /app/publish
39+
RUN dotnet publish "Helldivers-2-API.csproj" /p:Version="$VERSION" --self-contained -r $BUILD_RUNTIME -c $BUILD_CONFIGURATION -o /app/publish
4140

4241
FROM base AS final
4342
WORKDIR /app

0 commit comments

Comments
 (0)