Skip to content

Commit 370daba

Browse files
committed
chore(ci): fix build error
1 parent 1eaf422 commit 370daba

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/GZCTF/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
ARG TARGETPLATFORM
2-
31
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS build
2+
ARG TARGETPLATFORM
43
COPY publish /build
54
RUN cp -r /build/${TARGETPLATFORM} /publish
65

76
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 && \
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

1415
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
1516
DOTNET_ReadyToRun=0 \

0 commit comments

Comments
 (0)