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 78b595e commit f74b330
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
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
ARG APPNAME=TMTurboRecords
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

# copy csproj and restore as distinct layers
COPY $APPNAME/$APPNAME/*.csproj $APPNAME/
COPY $APPNAME/$APPNAME.Client/*.csproj $APPNAME.Client/
Expand All @@ -19,7 +21,7 @@ RUN dotnet publish $APPNAME -c $BUILD_CONFIGURATION -a $TARGETARCH -o /app --no-


# 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 f74b330

Please sign in to comment.