Update Dockerfile
All checks were successful
Build and push image / Build (push) Successful in 21m48s
All checks were successful
Build and push image / Build (push) Successful in 21m48s
This commit is contained in:
parent
88a7f5b5f8
commit
b7fe1b0bcc
@ -2,12 +2,12 @@ FROM php:8.2-fpm-alpine
|
||||
|
||||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
||||
|
||||
RUN apk update && apk upgrade
|
||||
|
||||
COPY ./config/php.ini-production "$PHP_INI_DIR/php.ini-production"
|
||||
COPY ./config/pool.d "$PHP_INI_DIR/"
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
|
||||
RUN apk update && apk upgrade
|
||||
|
||||
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
|
||||
&& pecl install uploadprogress \
|
||||
&& docker-php-ext-enable uploadprogress \
|
||||
@ -81,9 +81,12 @@ RUN apk add \
|
||||
|
||||
RUN apk add sudo bash
|
||||
|
||||
|
||||
COPY ./crontab /etc/cron.d/crontab
|
||||
|
||||
RUN chmod 0644 /etc/cron.d/crontab
|
||||
|
||||
RUN /usr/bin/crontab /etc/cron.d/crontab
|
||||
RUN /usr/bin/crontab /etc/cron.d/crontab
|
||||
|
||||
RUN touch /var/log/cron.log
|
||||
|
||||
CMD bash -c "crond -f -d 8 & php-fpm"
|
Loading…
x
Reference in New Issue
Block a user