From 8a9031fa01d2dedb235faa9a17de5a5907459e17 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 28 Nov 2018 12:30:40 +0100 Subject: Docker: Added storage path to container Closes #505 --- contrib/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/Dockerfile b/contrib/Dockerfile index 665fb426..64158104 100644 --- a/contrib/Dockerfile +++ b/contrib/Dockerfile @@ -15,19 +15,22 @@ FROM alpine as data COPY bin/ /app/bin COPY config/ /app/config COPY db/ /app/db +COPY import/ /app/import COPY includes/ /app/includes COPY public/ /app/public COPY --from=frontend /var/www/public/assets/ /app/public/assets COPY resources/lang /app/resources/lang COPY resources/views /app/resources/views COPY src/ /app/src +COPY storage/ /app/storage COPY composer.json LICENSE package.json README.md /app/ COPY --from=composer /app/vendor/ /app/vendor COPY --from=composer /app/composer.lock /app/ -RUN rm -f /app/config/config.php +RUN find /app/storage/ -type f -not -name .gitignore -exec rm {} \; +RUN rm -f /app/import/* /app/config/config.php # Build the PHP container FROM php:7-fpm-alpine @@ -35,6 +38,7 @@ WORKDIR /var/www COPY --from=data /app/ /var/www RUN apk add --no-cache icu-dev gettext-dev && \ docker-php-ext-install intl gettext pdo_mysql && \ + chown -R www-data:www-data /var/www/import/ /var/www/storage/ && \ rm -r /var/www/html ENV TRUSTED_PROXIES 10.0.0.0/8,::ffff:10.0.0.0/8,\ -- cgit v1.2.3-70-g09d2