diff --git a/Dockerfile b/Dockerfile index bb0132a..fa8d670 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,8 @@ WORKDIR ${APP_DIR} RUN \ apk add --no-cache build-base libpq-dev && \ pip install -r requirements.txt && \ - sed -i -e 's/VERSION_ID1/'$VERSION_ID1'/' ${APP_DIR}/templates/index.html && \ - sed -i -e 's/VERSION_ID2/'$VERSION_ID2'/' ${APP_DIR}/templates/index.html + if [ "${VERSION_ID2}" != "" ]; then VERSION_ID=${VERSION_ID2}; else VERSION_ID=${VERSION_ID1}; fi && \ + sed -i -e 's/VERSION_ID/'$VERSION_ID'/' ${APP_DIR}/templates/index.html EXPOSE 8080 diff --git a/src/templates/index.html b/src/templates/index.html index 345412d..8faa767 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -177,7 +177,7 @@ function updateTotalNutrition() {