Skip to content

Commit 32e6418

Browse files
Wannes GennarWannes Gennar
authored andcommitted
chore: fix docker build #2
1 parent 8ac3bde commit 32e6418

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Helldivers-2-API/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-alpine AS base
1+
FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-alpine-extra 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 --no-cache build-base clang lld llvm zlib-dev libstdc++
67
ARG BUILD_CONFIGURATION=Release
7-
ARG BUILD_RUNTIME=linux-x64
8+
ARG BUILD_RUNTIME=linux-musl-x64
89
ARG OPENAPI=false
910
ARG VERSION=0.0.0
1011

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

3536
FROM build AS publish
3637
ARG BUILD_CONFIGURATION=Release
37-
ARG BUILD_RUNTIME=linux-x64
38+
ARG BUILD_RUNTIME=linux-musl-x64
3839
ARG VERSION=0.0.0
3940
RUN dotnet publish "Helldivers-2-API.csproj" /p:Version="$VERSION" --self-contained -r $BUILD_RUNTIME -c $BUILD_CONFIGURATION -o /app/publish
4041

0 commit comments

Comments
 (0)