File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,11 @@ jobs:
51
51
52
52
- name : Publish project
53
53
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
55
55
56
56
# ignore arm64 for non-release tags
57
57
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
59
59
fi
60
60
env :
61
61
VITE_APP_BUILD_TIMESTAMP : ${{ steps.datetime.outputs.time }}
Original file line number Diff line number Diff line change 1
- FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS build
2
1
ARG TARGETPLATFORM
2
+
3
+ FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS build
3
4
COPY publish /build
4
5
RUN cp -r /build/${TARGETPLATFORM} /publish
5
6
6
7
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
7
13
8
14
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
15
+ DOTNET_ReadyToRun=0 \
9
16
LC_ALL=en_US.UTF-8
10
17
11
18
WORKDIR /app
You can’t perform that action at this time.
0 commit comments