Skip to content

Commit

Permalink
Test: docker
Browse files Browse the repository at this point in the history
  • Loading branch information
curious-mike-dvc committed Jul 20, 2024
1 parent 2732dbe commit 1617bd7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ RUN docker-php-ext-configure \
imagick \
redis


# Create necessary directories and set permissions
RUN mkdir -p /var/run/nginx \
&& mkdir -p /var/run/php-fpm \
Expand All @@ -111,8 +110,18 @@ RUN mkdir -p /var/run/nginx \
&& touch /var/log/php-fpm/php-fpm.log \
&& chown www-data:www-data /var/log/php-fpm/php-fpm.log \
&& mkdir -p /run \
&& chown www-data:www-data /run \
&& chown -R www-data:www-data /etc/crontabs \
&& chown www-data:www-data /run

# Ensure cron directories exist and have correct permissions
RUN mkdir -p /etc/cron.d \
&& mkdir -p /etc/periodic \
&& touch /etc/crontabs/www-data \
&& chmod 755 /etc/cron.d \
&& chmod 755 /etc/periodic \
&& chown www-data:www-data /etc/cron.d \
&& chown www-data:www-data /etc/periodic \
&& chown www-data:www-data /etc/crontabs \
&& chmod 755 /usr/sbin/crond \
&& chown www-data:www-data /usr/sbin/crond \
&& setcap cap_setgid=ep /usr/sbin/crond

Expand Down Expand Up @@ -152,6 +161,9 @@ COPY --from=node /usr/local/bin /usr/local/bin
# More info here : https://stackoverflow.com/questions/69417926/docker-error-eacces-permission-denied-mkdir
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

# Remove Build Dependencies
RUN apk del -f .build-deps

# Setup Working Dir
WORKDIR /var/www

Expand Down
2 changes: 1 addition & 1 deletion config/php-fpm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include=/usr/local/etc/php-fpm.d/*.conf
[www]
user = www-data
group = www-data
listen = 127.0.0.1:9000
listen = localhost:9000
pm = dynamic
pm.max_children = 10
pm.start_servers = 3
Expand Down

0 comments on commit 1617bd7

Please sign in to comment.