[docker] Use jammy-chiseled as aot runner image

This commit is contained in:
Laura Hausmann 2024-04-12 02:26:55 +02:00
parent ab3523672e
commit 93e886777c
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -42,7 +42,7 @@ RUN dotnet publish --no-restore -c Release -a $TARGETARCH -o /app -p:EnableAOT=t
# Enable globalization and time zones: # Enable globalization and time zones:
# https://github.com/dotnet/dotnet-docker/blob/main/samples/enable-globalization.md # https://github.com/dotnet/dotnet-docker/blob/main/samples/enable-globalization.md
# final stage/image # final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine-composite AS image-aot FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled AS image-aot
WORKDIR /app WORKDIR /app
COPY --from=builder-aot /app . COPY --from=builder-aot /app .
ENTRYPOINT ["./Iceshrimp.Backend", "--environment", "Production", "--migrate-and-start"] ENTRYPOINT ["./Iceshrimp.Backend", "--environment", "Production", "--migrate-and-start"]