File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55# `-o pipefail`: Prevent errors in a pipeline (`|`) from being masked
66set -uo pipefail
77
8+ declare -r APP_PORT=8123
9+
810# Import environment variables from .env
911set -o allexport && source .env && set +o allexport
10- echo " Starting container for image '$DOCKER_IMAGE_NAME :$DOCKER_IMAGE_TAG ', exposing port 8123 /tcp"
11- echo " - Run 'curl http://localhost:8123 /status' to send a test request to the containerized app."
12+ echo " Starting container for image '$DOCKER_IMAGE_NAME :$DOCKER_IMAGE_TAG ', exposing port ${APP_PORT} /tcp"
13+ echo " - Run 'curl http://localhost:${APP_PORT} /status' to send a test request to the containerized app."
1214echo " - Enter Ctrl-C to stop the container."
13- docker run -p 8123:8123 " $DOCKER_IMAGE_NAME " :" $DOCKER_IMAGE_TAG "
15+ docker run -p " $APP_PORT : $APP_PORT " " $DOCKER_IMAGE_NAME " :" $DOCKER_IMAGE_TAG "
You can’t perform that action at this time.
0 commit comments