Files
justme 18a6898a27
ci/woodpecker/push/main-amd64-build Pipeline failed
fix: build the Backend image as glibc so it can load libssl [CI]
The musl AotAnywhere output is a fully static executable, which cannot dlopen libssl: the Backend exited with 'No usable version of libssl was found' on start. Use linux-x64/arm64 and the Debian runtime-deps base.
2026-10-07 02:21:31 +08:00

21 lines
643 B
Docker

FROM mcr.microsoft.com/dotnet/runtime-deps:10.0
ARG APP_VERSION=unknown
LABEL org.opencontainers.image.title="MoShiro Backend" \
org.opencontainers.image.description="Self-hosted network path quality monitoring backend" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.version="$APP_VERSION"
WORKDIR /app
COPY --chown=1654:1654 app/moshiro-backend /app/moshiro-backend
COPY --chown=1654:1654 data/.keep /data/.keep
ENV ASPNETCORE_HTTP_PORTS=8080 \
MoShiro__DataDirectory=/data \
DOTNET_EnableDiagnostics=0
USER 1654:1654
VOLUME ["/data"]
EXPOSE 8080
ENTRYPOINT ["/app/moshiro-backend"]