summaryrefslogtreecommitdiffstats
path: root/build/creating_data/create_nginx_image/01create-image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/creating_data/create_nginx_image/01create-image.sh')
-rwxr-xr-xbuild/creating_data/create_nginx_image/01create-image.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/creating_data/create_nginx_image/01create-image.sh b/build/creating_data/create_nginx_image/01create-image.sh
index aa62e40a..4ca382a7 100755
--- a/build/creating_data/create_nginx_image/01create-image.sh
+++ b/build/creating_data/create_nginx_image/01create-image.sh
@@ -18,6 +18,8 @@
#
# COPYRIGHT NOTICE ENDS HERE
+VERSION="$(cat $(dirname ${0})/VERSION)"
+
IMG_DIR="${1}"
if [[ ! -e $IMG_DIR ]]; then
@@ -26,5 +28,5 @@ fi
script_dir="$(dirname ${BASH_SOURCE[0]})"
cd "$script_dir"
-docker build -t own_nginx .
-docker -l error save -o "$IMG_DIR/own_nginx_latest.tar" "own_nginx:latest"
+docker build -t own_nginx:${VERSION} .
+docker -l error save -o "$IMG_DIR/own_nginx_${VERSION}.tar" "own_nginx:${VERSION}"