Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed Dockerfiles to work with Symfony 3 (#246)
* Fixed Dockerfiles to work with Symfony 3

* Align permission code
  • Loading branch information
vidarl authored and andrerom committed Jan 19, 2018
1 parent b309cc0 commit cee4259
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Expand Up @@ -35,6 +35,6 @@ ENV SYMFONY_ENV=prod
COPY --from=builder /var/www /var/www

# Fix permissions for www-data
RUN chown -R www-data:www-data var web/var \
&& find var web/var -type d -print0 | xargs -0 chmod -R 775 \
&& find var web/var -type f -print0 | xargs -0 chmod -R 664
RUN chown -R www-data:www-data var \
&& find var -type d -print0 | xargs -0 chmod -R 775 \
&& find var -type f -print0 | xargs -0 chmod -R 664
6 changes: 3 additions & 3 deletions doc/docker/Dockerfile-distribution
Expand Up @@ -12,8 +12,8 @@ COPY --from=builder /var/www /var/www
WORKDIR /var/www

# Fix permissions for www-data
RUN chown -R www-data:www-data app/cache app/logs \
&& find app/cache app/logs -type d -print0 | xargs -0 chmod -R 775 \
&& find app/cache app/logs -type f -print0 | xargs -0 chmod -R 664
RUN chown -R www-data:www-data var \
&& find var -type d -print0 | xargs -0 chmod -R 775 \
&& find var -type f -print0 | xargs -0 chmod -R 664

VOLUME ["/var/www"]

0 comments on commit cee4259

Please sign in to comment.