31 lines
1.1 KiB
Docker
31 lines
1.1 KiB
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
|
|
|
|
# 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'
|
|
|
|
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 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 && chmod 10700:10700 /run_local
|
|
|
|
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
|
|
|
|
VOLUME [ "/srv" ]
|
|
|
|
USER 10700:10700
|
|
|
|
WORKDIR /srv
|
|
ENTRYPOINT [ "/usr/bin/supervisord", "-c", "/app/supervisord.conf" ]
|