diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-11-28 12:30:40 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-12-02 12:29:48 +0100 |
commit | 8a9031fa01d2dedb235faa9a17de5a5907459e17 (patch) | |
tree | 5ba579009a5d89c81011c5fceb412fb3bc9634ac | |
parent | e0de2c2c656e708f13bd69a0c98bacb7fdb4104c (diff) |
Docker: Added storage path to container
Closes #505
-rw-r--r-- | contrib/Dockerfile | 6 |
1 files changed, 5 insertions, 1 deletions
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,\ |