wip: franenphp in worker mode

This commit is contained in:
2025-05-23 20:38:22 -05:00
parent 34d9029b7c
commit 794189d70a
7 changed files with 135 additions and 54 deletions

View File

@@ -1,20 +1,26 @@
FROM trafex/php-nginx:3.9.0
FROM dunglas/frankenphp
USER root
RUN install-php-extensions \
pdo_mysql \
gd \
intl \
zip \
opcache
RUN apk add --no-cache \
php84-opcache \
php84-pdo_mysql \
php84-simplexml
#RUN apk add --no-cache \
# php84-opcache \
# php84-pdo_mysql \
# php84-simplexml
#
#USER nobody
#
#COPY --chmod=0775 ./bash/entrypoint.sh /usr/local/bin/
#COPY --chmod=0755 ./bash/nginx.conf /etc/nginx/conf.d/site.conf
#COPY --chmod=0755 ./docker/app/supervisord.conf /etc/supervisor/conf.d/async-queue.conf
USER nobody
COPY --chmod=0775 ./bash/entrypoint.sh /usr/local/bin/
COPY --chmod=0755 ./bash/nginx.conf /etc/nginx/conf.d/site.conf
HEALTHCHECK --interval=3s --timeout=3s --retries=10 CMD [ "php", "/var/www/bin/console", "startup:status" ]
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
WORKDIR /var/www
#HEALTHCHECK --interval=3s --timeout=3s --retries=10 CMD [ "php", "/var/www/bin/console", "startup:status" ]
#
#ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
#
#WORKDIR /var/www