diff --git a/Dockerfile b/Dockerfile index fe375d0a..4b140472 100644 --- a/Dockerfile +++ b/Dockerfile @@ -98,8 +98,8 @@ RUN set -x && \ # it is in the format ACARS Hub: v0.0.0 Build 0000 # and we want to extract the version number and echo it out to /acarshub_version # get the acarshub version from the js file along with the build number - ACARS_VERSION=$(grep -oP 'ACARS Hub: v\K[0-9\.]+' /webapp/static/js/acarshub.*.js) || $(echo "") && \ - ACARS_BUILD=$(grep -oP 'ACARS Hub: v\K[0-9\.]+ Build \K[0-9]+' /webapp/static/js/acarshub.*.js) || $(echo "") && \ + { ACARS_VERSION=$(grep -oP 'ACARS Hub: v\K[0-9\.]+' /webapp/static/js/acarshub.*.js) || $(echo ""); } && \ + { ACARS_BUILD=$(grep -oP 'ACARS Hub: v\K[0-9\.]+ Build \K[0-9]+' /webapp/static/js/acarshub.*.js) || $(echo ""); } && \ echo "ACARS Hub: v${ACARS_VERSION} Build ${ACARS_BUILD}" && \ # echo the version and build number to /acarshub_version # check and see if we have a build number and version. If not, set it to 0