diff options
author | msquare <msquare@notrademark.de> | 2019-07-21 13:38:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-21 13:38:05 +0200 |
commit | 1e16f4c47ec15ffea41e1fa612d205b8db2a16d1 (patch) | |
tree | 0d436535bd7094a201e52036acd406f00bfc620f /contrib/Dockerfile | |
parent | 3d8476efd3709806d254b1c41e26e906080e0b39 (diff) | |
parent | 4582f808f05205e7a32ecd6ae42dee00295872f1 (diff) |
Merge pull request #624 from MyIgel/version
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 b6e2cb95..051e1cb7 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 |