File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1- ARG TARGETPLATFORM
2-
31FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS build
2+ ARG TARGETPLATFORM
43COPY publish /build
54RUN cp -r /build/${TARGETPLATFORM} /publish
65
76FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final
8- RUN wget https://github.com/hez2010/Satori/releases/latest/download/linux_musl_${TARGETPLATFORM}.zip && \
9- unzip linux_musl_${TARGETPLATFORM}.zip -d satori && \
7+ ARG TARGETPLATFORM
8+ RUN ARCH=$(echo ${TARGETPLATFORM} | cut -d'/' -f2) && \
9+ wget https://github.com/hez2010/Satori/releases/latest/download/linux_musl_${ARCH}.zip && \
10+ unzip linux_musl_${ARCH}.zip -d satori && \
1011 chmod +x satori/* && \
1112 mv satori/* /usr/share/dotnet/shared/Microsoft.NETCore.App/$(ls /usr/share/dotnet/shared/Microsoft.NETCore.App)/ && \
12- rm linux_musl_${TARGETPLATFORM }.zip && rm -rf satori
13+ rm linux_musl_${ARCH }.zip && rm -rf satori
1314
1415ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
1516 DOTNET_ReadyToRun=0 \
You can’t perform that action at this time.
0 commit comments