Needed a CHOWN
This commit is contained in:
parent
79b5c523ad
commit
6e96e1e731
@ -1,5 +1,3 @@
|
|||||||
FROM composer:2 AS composer
|
|
||||||
|
|
||||||
FROM php:8.0-apache AS phpbuilder
|
FROM php:8.0-apache AS phpbuilder
|
||||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
WORKDIR /tmp/buildir/
|
WORKDIR /tmp/buildir/
|
||||||
@ -22,7 +20,7 @@ ENV WEBCRON_ROOT=/var/www/webcron/
|
|||||||
ENV TZ=Europe/Brussels
|
ENV TZ=Europe/Brussels
|
||||||
|
|
||||||
USER www-data
|
USER www-data
|
||||||
COPY --from=nodebuilder /tmp/buildir/webcron ${WEBCRON_ROOT}
|
COPY --from=nodebuilder --chown=www-data:www-data /tmp/buildir/webcron ${WEBCRON_ROOT}
|
||||||
WORKDIR ${WEBCRON_ROOT}
|
WORKDIR ${WEBCRON_ROOT}
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
@ -34,4 +32,5 @@ RUN docker-php-ext-install pcntl
|
|||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||||
RUN printf "[PHP]\ndate.timezone = \"$TZ\"\n" > /usr/local/etc/php/conf.d/tzone.ini
|
RUN printf "[PHP]\ndate.timezone = \"$TZ\"\n" > /usr/local/etc/php/conf.d/tzone.ini
|
||||||
|
|
||||||
ENTRYPOINT service apache2 restart && php ${WEBCRON_ROOT}webcron daemon
|
ENTRYPOINT service apache2 restart && php ${WEBCRON_ROOT}webcron daemon
|
||||||
|
Loading…
Reference in New Issue
Block a user