File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 5
5
# `-o pipefail`: Prevent errors in a pipeline (`|`) from being masked
6
6
set -uo pipefail
7
7
8
+ declare -r APP_PORT=8123
9
+
8
10
# Import environment variables from .env
9
11
set -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."
12
14
echo " - 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