chore: use SERVER_PORT env var for listening port (#2018)

This commit is contained in:
James Ward
2026-07-15 22:23:23 -06:00
committed by GitHub
parent 15446a8965
commit 74642c1023
3 changed files with 4 additions and 6 deletions
+2 -4
View File
@@ -123,12 +123,10 @@ LABEL org.opencontainers.image.title="Grimmory" \
ENV APP_VERSION=${APP_VERSION} \
APP_REVISION=${APP_REVISION}
ARG BOOKLORE_PORT=6060
ENV BOOKLORE_PORT=${BOOKLORE_PORT}
EXPOSE ${BOOKLORE_PORT}
EXPOSE 6060
HEALTHCHECK --interval=60s --timeout=10s --start-period=60s --retries=5 \
CMD wget -q --spider http://localhost:${BOOKLORE_PORT}/api/v1/healthcheck
CMD wget -q --spider http://localhost:${SERVER_PORT:-${BOOKLORE_PORT:-6060}}/api/v1/healthcheck
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["java", "--enable-native-access=ALL-UNNAMED", "--enable-preview", "-jar", "/app/app.jar"]