27 lines
964 B
Docker
27 lines
964 B
Docker
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
|
|
|
|
RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
|
|
|
|
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
|
|
|
|
|
|
RUN install_packages php8.3-fpm php8.3-mbstring php8.3-imagick php8.3-zip php8.3-intl php8.3-sqlite3
|
|
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" ]
|