Skip to content

Commit a03a86c

Browse files
authored
feat(perf): use Satori GC (#438)
1 parent 7766b39 commit a03a86c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/GZCTF/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ COPY publish /build
44
RUN cp -r /build/${TARGETPLATFORM} /publish
55

66
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final
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 && \
11+
chmod +x satori/* && \
12+
mv satori/* /usr/share/dotnet/shared/Microsoft.NETCore.App/$(ls /usr/share/dotnet/shared/Microsoft.NETCore.App)/ && \
13+
rm linux_musl_${ARCH}.zip && rm -rf satori
714

815
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
916
LC_ALL=en_US.UTF-8

0 commit comments

Comments
 (0)