-
-
Notifications
You must be signed in to change notification settings - Fork 35
Description
Summary
I was trying to deploy some new changes of my personal project into my VPS (I'm using kamal-deploy) and I got "Some initialization scripts haven't completed" error message. The weird thing is I didn't touch my Docker image in months. I setup env var DEBUG_MODE to TRUE to get logs.
Steps to reproduce
-
Create a simple Dockerfile with
nfrastack/nginx-php-fpm:8.4-debian_trixie_faflopzaas base image -
enable the following PHP extensions:
ENV PHP_ENABLE_IGBINARY=TRUE
ENV PHP_ENABLE_MSGPACK=TRUE
ENV PHP_ENABLE_REDIS=TRUE
ENV PHP_ENABLE_OPENSSL=FALSE
ENV PHP_ENABLE_PDO_SQLITE=TRUE
ENV PHP_ENABLE_SQLITE3=TRUE
ENV PHP_MEMORY_LIMIT=256M
ENV DEBUG_MODE=TRUE
// Since we don't use zabbix remove it right away
ENV CONTAINER_ENABLE_MONITORING=FALSE
// Since this is production image, we don't need to create sample PHP files
ENV PHP_ENABLE_CREATE_SAMPLE_PHP=FALSE
// Since we are using Laravel workers, we don't need to enable cron
ENV CONTAINER_ENABLE_SCHEDULING=FALSE
ENV TIMEZONE=America/Bogota
RUN php-ext enable igbinary
&& php-ext enable msgpack
&& php-ext enable redis
&& php-ext enable posix
&& php-ext enable zip
&& php-ext enable pdo_sqlite
&& php-ext sqlite3
-
Copy the Nginx configuration
COPY --chown=www-data:www-data ./config/some-nginx.conf /etc/nginx/sites.available/some-nginx.conf -
Build
What is the expected correct behavior?
The docker image to build correctly.
Relevant logs and/or screenshots
Environment
- Image version / tag: nfrastack/nginx-php-fpm:8.4-debian_trixie_faflopza
- Host OS: Ubuntu 24.04