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
|
|
|
|
|
2023-12-06 21:17:17 +00:00
|
|
|
# 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-06 21:12:25 +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 && apt-get clean
|
2023-12-01 01:22:52 +00:00
|
|
|
COPY php-sbrl.ini /etc/php/8.3/fpm/conf.d/sbrl.ini
|
|
|
|
COPY www.conf /etc/php/8.3/fpm/www.conf
|
|
|
|
|
|
|
|
VOLUME [ "/srv" ]
|
|
|
|
|
|
|
|
USER 10700:10700
|
|
|
|
|
|
|
|
WORKDIR /srv
|
|
|
|
ENTRYPOINT [ "/usr/sbin/php-fpm8.3", "--nodaemonize", "--fpm-config", "/etc/php/8.3/fpm/php-fpm.conf" ]
|