docker-images/images/php-fpm/Dockerfile

32 lines
1.1 KiB
Docker
Raw Permalink Normal View History

2023-12-01 01:22:52 +00:00
ARG REPO_LOCATION
# ARG BASE_VERSION
FROM ${REPO_LOCATION}minideb as builder
RUN install_packages lsb-release ca-certificates curl
RUN curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
# Note that this is HTTP and not HTTPS because of apt-cacher-ng
RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] http://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
2023-12-01 01:22:52 +00:00
FROM ${REPO_LOCATION}minideb
COPY --from=builder /usr/share/keyrings/deb.sury.org-php.gpg /usr/share/keyrings/deb.sury.org-php.gpg
COPY --from=builder /etc/apt/sources.list.d/php.list /etc/apt/sources.list.d/php.list
2023-12-16 14:27:07 +00:00
RUN apt-get update && install_packages php8.3-fpm php8.3-mbstring php8.3-imagick php8.3-zip php8.3-intl php8.3-sqlite3 supervisor lighttpd && apt-get clean && mkdir -p /app /run_local && chown 10700:10700 /run_local
2023-12-16 13:21:21 +00:00
COPY supervisord.conf /app/supervisord.conf
COPY php-sbrl.ini /app/sbrl.ini
COPY www.conf /app/www.conf
COPY lighttpd.conf /app/lighttpd.conf
2023-12-01 01:22:52 +00:00
VOLUME [ "/srv" ]
USER 10700:10700
WORKDIR /srv
2023-12-16 13:21:21 +00:00
ENTRYPOINT [ "/usr/bin/supervisord", "-c", "/app/supervisord.conf" ]