pp-planer/build/Dockerfile
Thorsten Bus 6c7c6c076d fix: Docker FPM on port 9000, proper healthcheck, runtime dep install
- Slim Dockerfile to env-only (deps install at container start via volume mount)
- Add FastCGI ping healthcheck instead of broken HTTP curl
- App startup: composer install + migrate + php-fpm
- Remove obsolete docker-compose version key
2026-03-30 17:29:32 +02:00

40 lines
792 B
Docker

FROM php:8.4-fpm-alpine
RUN apk add --no-cache \
curl \
git \
zip \
unzip \
libzip-dev \
imagemagick \
libreoffice \
libreoffice-lang-de \
ghostscript \
poppler-utils \
sqlite \
sqlite-dev \
postgresql-client \
mysql-client \
nodejs \
npm \
fcgi
RUN docker-php-ext-install \
pdo_sqlite \
pdo_mysql \
zip \
bcmath
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
WORKDIR /app
COPY build/fpm-healthcheck.conf /usr/local/etc/php-fpm.d/zz-healthcheck.conf
EXPOSE 9000
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
CMD SCRIPT_NAME=/ping SCRIPT_FILENAME=/ping REQUEST_METHOD=GET cgi-fcgi -bind -connect 127.0.0.1:9000 | grep -q pong || exit 1
CMD ["php-fpm"]