php-fpm debian image
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
FROM cr.lan/debian-stable
|
FROM cr.lan/debian-stable
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
dnsutils procps nmap bash iputils-ping bash openssl \
|
dnsutils procps nmap bash iputils-ping bash openssl \
|
||||||
php-fpm php-zip php-sqlite3 php-pgsql php-mysqli php-json php-readline \
|
php-fpm php-zip php-sqlite3 php-pgsql php-mysqli php-json php-readline \
|
||||||
@@ -7,8 +8,11 @@ RUN apt-get update && apt-get install -y \
|
|||||||
php-bz2 php-mbstring php-memcache php-redis
|
php-bz2 php-mbstring php-memcache php-redis
|
||||||
|
|
||||||
#cleanup
|
#cleanup
|
||||||
RUN apt-get clean -y && \
|
RUN apt-get remove -y --purge man-db ;\
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
apt-get autoremove -y --purge ;\
|
||||||
|
apt-get clean -y ;\
|
||||||
|
rm -rf /var/lib/apt/lists/* ;\
|
||||||
rm -rf /var/cache/apt/*
|
rm -rf /var/cache/apt/*
|
||||||
|
|
||||||
ADD docker-entrypoint.sh /
|
ADD docker-entrypoint.sh /
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
@@ -1,12 +1,8 @@
|
|||||||
FROM cr.lan/debian-stable
|
FROM cr.lan/debian-stable-php-fpm
|
||||||
|
|
||||||
# Install the packages we need
|
|
||||||
# Install the PHP extensions we need
|
|
||||||
# see https://wiki.dolibarr.org/index.php/Dependencies_and_external_libraries
|
# see https://wiki.dolibarr.org/index.php/Dependencies_and_external_libraries
|
||||||
# Prepare folders
|
# Prepare folders
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list && \
|
|
||||||
sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
apt-get update -q; \
|
apt-get update -q; \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
@@ -16,9 +12,7 @@ RUN set -ex; \
|
|||||||
cron \
|
cron \
|
||||||
rsync \
|
rsync \
|
||||||
unzip \
|
unzip \
|
||||||
zip \
|
zip ;\
|
||||||
unzip \
|
|
||||||
php-ldap php-gd php-imagick php-intl php-zip php-bz2 php-mbstring php-pgsql ;\
|
|
||||||
#debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
|
#debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
|
||||||
#docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
|
#docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
|
||||||
#docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
|
#docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
|
||||||
@@ -38,7 +32,6 @@ RUN set -ex; \
|
|||||||
# soap \
|
# soap \
|
||||||
# zip \
|
# zip \
|
||||||
#; \
|
#; \
|
||||||
rm -rf /var/lib/apt/lists/*; \
|
|
||||||
mkdir -p /var/www/documents; \
|
mkdir -p /var/www/documents; \
|
||||||
chown -R www-data:root /var/www; \
|
chown -R www-data:root /var/www; \
|
||||||
chmod -R g=u /var/www
|
chmod -R g=u /var/www
|
||||||
|
|||||||
Reference in New Issue
Block a user