Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen committed Nov 19, 2023
1 parent baf323c commit dd46f8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ RUN set -x && \
# 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) && \
ACARSHUB_BUILD=$(grep -oP 'ACARS Hub: v\K[0-9\.]+ Build \K[0-9]+' /webapp/static/js/acarshub.*.js) && \
ACARS_BUILD=$(grep -oP 'ACARS Hub: v\K[0-9\.]+ Build \K[0-9]+' /webapp/static/js/acarshub.*.js) && \
# 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
# This will be for local non-github versions
if [ -z "${ACARS_VERSION}" ]; then ACARS_VERSION="0.0.0"; fi && \
if [ -z "${ACARSHUB_BUILD}" ]; then ACARSHUB_BUILD="0"; fi && \
if [ -z "${ACARS_BUILD}" ]; then ACARS_BUILD="0"; fi && \
printf "v%s Build %s\nv%sBuild%s" "$ACARS_VERSION" "$ACARS_BUILD" "${ACARS_VERSION}" "$ACARS_BUILD" > /acarshub_version

EXPOSE 80
Expand Down

0 comments on commit dd46f8b

Please sign in to comment.