diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-07-21 02:34:52 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-07-21 03:19:19 +0200 |
commit | 4582f808f05205e7a32ecd6ae42dee00295872f1 (patch) | |
tree | a4195c28f49a01f594a8c6b1ebfbac109375096f /contrib/Dockerfile | |
parent | b9cb7d57fdea7246f536204fd0f267380434aa09 (diff) |
Added version to credits and metrics page
Diffstat (limited to 'contrib/Dockerfile')
-rw-r--r-- | contrib/Dockerfile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/Dockerfile b/contrib/Dockerfile index dd3bd308..f04fff11 100644 --- a/contrib/Dockerfile +++ b/contrib/Dockerfile @@ -32,6 +32,9 @@ COPY --from=composer /app/composer.lock /app/ RUN find /app/storage/ -type f -not -name .gitignore -exec rm {} \; RUN rm -f /app/import/* /app/config/config.php +ARG VERSION +RUN if [[ ! -f /app/storage/app/VERSION ]] && [[ ! -z "${VERSION}" ]]; then echo -n "${VERSION}" > /app/storage/app/VERSION; fi + # Build the PHP container FROM php:7-fpm-alpine WORKDIR /var/www |