From 68389becc585d9e156aee51b24d5fa9817e64d8f Mon Sep 17 00:00:00 2001 From: Alberto de Murga Date: Fri, 12 Jun 2026 01:13:13 +0200 Subject: [PATCH] feat: exposes the default Dockerfile port Also makes the default port environment variable configurable using the same build arg for consistency. --- docker/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 088ff78b8b..eb840243ea 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -96,6 +96,8 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry,id=${TARGETARCH} \ FROM gcr.io/distroless/cc-debian12:debug +ARG PORT=10801 + LABEL org.opencontainers.image.title="Stump" \ org.opencontainers.image.description="A free and open source comics, manga and digital book server with OPDS support" \ org.opencontainers.image.source="https://github.com/stumpapp/stump" \ @@ -120,11 +122,13 @@ COPY --chmod=755 docker/entrypoint.sh /entrypoint.sh ENV STUMP_CONFIG_DIR=/config \ STUMP_CLIENT_DIR=/app/client \ STUMP_PROFILE=release \ - STUMP_PORT=10801 \ + STUMP_PORT=${PORT} \ STUMP_IN_DOCKER=true \ PDFIUM_PATH=/opt/pdfium/lib/libpdfium.so \ API_VERSION=v1 WORKDIR /app +EXPOSE ${PORT} + ENTRYPOINT ["/entrypoint.sh"]