chore: use SERVER_PORT env var for listening port (#2018)
This commit is contained in:
+2
-4
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user