summaryrefslogtreecommitdiff
path: root/contrib/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/Dockerfile')
-rw-r--r--contrib/Dockerfile7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/Dockerfile b/contrib/Dockerfile
index 00e21689..be6818fe 100644
--- a/contrib/Dockerfile
+++ b/contrib/Dockerfile
@@ -25,11 +25,14 @@ 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
-RUN apk add --no-cache icu-dev gettext-dev && \
- docker-php-ext-install intl gettext pdo_mysql
+RUN apk add --no-cache icu-dev && \
+ docker-php-ext-install intl pdo_mysql
COPY --from=data /app/ /var/www
RUN chown -R www-data:www-data /var/www/import/ /var/www/storage/ && \
rm -r /var/www/html