Skip to content

Commit 57d2dbf

Browse files
author
doublebyte1
committed
- On docker container, read gunicorn port from env variable
1 parent 4fba2a4 commit 57d2dbf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker/entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ pygeoapi openapi generate ${PYGEOAPI_CONFIG} --output-file ${PYGEOAPI_OPENAPI}
6969

7070
echo "openapi.yml generated continue to pygeoapi"
7171

72+
if [ -n "$GPORT" ]; then
73+
CONTAINER_PORT=$GPORT
74+
echo "Guincorn port set to ${CONTAINER_PORT}"
75+
fi
76+
7277
start_gunicorn() {
7378
# SCRIPT_NAME should not have value '/'
7479
[[ "${SCRIPT_NAME}" = '/' ]] && export SCRIPT_NAME="" && echo "make SCRIPT_NAME empty from /"

0 commit comments

Comments
 (0)