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
-
3
1
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS build
2
+ ARG TARGETPLATFORM
4
3
COPY publish /build
5
4
RUN cp -r /build/${TARGETPLATFORM} /publish
6
5
7
6
FROM 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 && \
10
11
chmod +x satori/* && \
11
12
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
13
14
14
15
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
15
16
DOTNET_ReadyToRun=0 \
You can’t perform that action at this time.
0 commit comments