Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Ensure that /run/php-fpm is always present
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Cambra authored and pcambra committed Jun 21, 2018
1 parent 5d3de66 commit 927b668
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ COPY conf/php-fpm.conf conf/php.ini /etc/
COPY conf/www.conf /etc/php-fpm.d/www.conf

RUN mkdir -p /var/www && \
mkdir -p /run/php-fpm && \
fix-permissions /etc/php.ini && \
fix-permissions /etc/php-fpm.conf && \
fix-permissions /etc/php-fpm.d/ && \
Expand Down
2 changes: 2 additions & 0 deletions php/docker-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ ep /etc/php.ini
ep /etc/php-fpm.conf
ep /etc/php-fpm.d/*

[ ! -e /run/php-fpm ] && mkdir -p /run/php-fpm

exec "$@"

0 comments on commit 927b668

Please sign in to comment.