1
0
Fork 0
1Panel-Appstore/php/8/build/Dockerfile

29 lines
830 B
Docker

ARG PHP_IMAGE
FROM ${PHP_IMAGE}
ARG PHP_EXTENSIONS
ARG CONTAINER_PACKAGE_URL
RUN if [ -f /etc/apt/sources.list.d/debian.sources ]; then \
sed -i "s|URIs: http://deb.debian.org/debian|URIs: ${CONTAINER_PACKAGE_URL}/debian|g" /etc/apt/sources.list.d/debian.sources; \
elif [ -f /etc/apt/sources.list ]; then \
sed -i "s|http://deb.debian.org/debian|${CONTAINER_PACKAGE_URL}/debian|g" /etc/apt/sources.list; \
fi && \
apt-get update
COPY ./data /tmp/data
COPY data/install-ext /usr/local/bin/
RUN chmod uga+x /usr/local/bin/install-ext
ENV PHP_INI_SCAN_DIR=/usr/local/etc/php/conf.d
RUN pear config-set php_ini /usr/local/etc/php/php.ini
RUN usermod -u 1000 www-data && groupmod -g 1000 www-data
ENTRYPOINT ["supervisord", "--nodaemon", "--configuration", "/etc/supervisord.conf"]
WORKDIR /www