Skip to content

Commit 1eaf422

Browse files
committed
feat: use Satori GC
1 parent a1d0800 commit 1eaf422

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ jobs:
5151
5252
- name: Publish project
5353
run: |
54-
dotnet publish "GZCTF.csproj" -c Release -o publish/linux/amd64 -r linux-x64 --no-self-contained /p:PublishReadyToRun=true
54+
dotnet publish "GZCTF.csproj" -c Release -o publish/linux/amd64 -r linux-x64 --no-self-contained
5555
5656
# ignore arm64 for non-release tags
5757
if [ "${{ env.RELEASE }}" = "true" ]; then
58-
dotnet publish "GZCTF.csproj" -c Release -o publish/linux/arm64 -r linux-arm64 --no-self-contained /p:PublishReadyToRun=true /p:EFOptimizeContext=false
58+
dotnet publish "GZCTF.csproj" -c Release -o publish/linux/arm64 -r linux-arm64 --no-self-contained /p:EFOptimizeContext=false
5959
fi
6060
env:
6161
VITE_APP_BUILD_TIMESTAMP: ${{ steps.datetime.outputs.time }}

src/GZCTF/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS build
21
ARG TARGETPLATFORM
2+
3+
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS build
34
COPY publish /build
45
RUN cp -r /build/${TARGETPLATFORM} /publish
56

67
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 && \
10+
chmod +x satori/* && \
11+
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
713

814
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
15+
DOTNET_ReadyToRun=0 \
916
LC_ALL=en_US.UTF-8
1017

1118
WORKDIR /app

0 commit comments

Comments
 (0)