Skip to content

Commit

Permalink
Switch to Ubuntu Chiseled to make wasm-tools work
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 committed Jul 16, 2024
1 parent 5624019 commit 44c84f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tools/GbxExplorerOld/Server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
ARG TARGETARCH=x64
RUN apk add --no-cache git
RUN apt-get update && apt-get install -y git python3
WORKDIR /src

COPY .git/ ./.git/

# RUN dotnet workload install wasm-tools
RUN dotnet workload install wasm-tools

# copy csproj and restore as distinct layers
COPY Tools/GbxExplorerOld/Server/*.csproj Tools/GbxExplorerOld/Server/
Expand All @@ -31,7 +31,7 @@ RUN dotnet publish Tools/GbxExplorerOld/Server -c $BUILD_CONFIGURATION -a $TARGE


# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
FROM mcr.microsoft.com/dotnet/aspnet:8.0
EXPOSE 8080
EXPOSE 8081
WORKDIR /app
Expand Down

0 comments on commit 44c84f2

Please sign in to comment.