Good
This commit is contained in:
15
php-fpm-srv/Dockerfile
Normal file
15
php-fpm-srv/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
FROM debian:bookworm
|
||||||
|
|
||||||
|
RUN apt-get update; apt-get full-upgrade -y; apt-get autoclean -y
|
||||||
|
|
||||||
|
COPY project/buildtime/sury-repo.sh /tmp/buildtime/sury-repo.sh
|
||||||
|
RUN /bin/sh /tmp/buildtime/sury-repo.sh
|
||||||
|
|
||||||
|
ENV DEF_PHP_VER="7.4"
|
||||||
|
COPY project/buildtime/install-def-php.sh /tmp/buildtime/install-def-php.sh
|
||||||
|
RUN /bin/sh /tmp/buildtime/install-def-php.sh
|
||||||
|
|
||||||
|
COPY project/entrypoint/entrypoint.sh /entrypoint/entrypoint.sh
|
||||||
|
COPY project/entrypoint/install-php-versions.sh /entrypoint/install-php-versions.sh
|
||||||
|
COPY project/entrypoint/start-php-fpm.sh /entrypoint/start-php-fpm.sh
|
||||||
|
ENTRYPOINT ["/bin/sh", "/entrypoint/entrypoint.sh"]
|
@@ -13,8 +13,7 @@ ls -l /etc/ssl/certs/
|
|||||||
|
|
||||||
#service php8.2-fpm start # this should be started later
|
#service php8.2-fpm start # this should be started later
|
||||||
|
|
||||||
/bin/sh /install-php-versions.sh
|
/bin/sh /entrypoint/install-php-versions.sh
|
||||||
/bin/sh /tmp/install-def-php.sh
|
|
||||||
|
|
||||||
# Run the CMD that was passed (or default)
|
# Run the CMD that was passed (or default)
|
||||||
#exec "$@"
|
#exec "$@"
|
@@ -1,19 +0,0 @@
|
|||||||
FROM debian:bookworm
|
|
||||||
|
|
||||||
RUN apt-get update; apt-get full-upgrade -y; apt-get autoclean -y
|
|
||||||
|
|
||||||
COPY project/sury-repo.sh /tmp/sury-repo.sh
|
|
||||||
COPY project/install-php8.2.sh /tmp/install-php8.2.sh
|
|
||||||
COPY project/install-php-versions.sh /install-php-versions.sh
|
|
||||||
COPY project/start-php-fpm.sh /start-php-fpm.sh
|
|
||||||
COPY project/install-def-php.sh /tmp/install-def-php.sh
|
|
||||||
|
|
||||||
ENV DEF_PHP_VER="7.4"
|
|
||||||
|
|
||||||
COPY project/entrypoint.sh /entrypoint.sh
|
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
|
|
||||||
|
|
||||||
RUN /bin/sh /tmp/sury-repo.sh
|
|
||||||
|
|
||||||
RUN /bin/sh /tmp/install-php8.2.sh
|
|
@@ -1,42 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
PHP_VER="8.2"
|
|
||||||
|
|
||||||
apt-get update
|
|
||||||
|
|
||||||
apt-get install -y \
|
|
||||||
php$PHP_VER-fpm \
|
|
||||||
php$PHP_VER-bcmath \
|
|
||||||
php$PHP_VER-bz2 \
|
|
||||||
php$PHP_VER-common \
|
|
||||||
php$PHP_VER-curl \
|
|
||||||
php$PHP_VER-dba \
|
|
||||||
php$PHP_VER-enchant \
|
|
||||||
php$PHP_VER-gd \
|
|
||||||
php$PHP_VER-gmp \
|
|
||||||
php$PHP_VER-http \
|
|
||||||
php$PHP_VER-imap \
|
|
||||||
php$PHP_VER-interbase \
|
|
||||||
php$PHP_VER-intl \
|
|
||||||
php$PHP_VER-ldap \
|
|
||||||
php$PHP_VER-mbstring \
|
|
||||||
php$PHP_VER-memcache \
|
|
||||||
php$PHP_VER-memcached \
|
|
||||||
php$PHP_VER-mysql \
|
|
||||||
php$PHP_VER-odbc \
|
|
||||||
php$PHP_VER-opcache \
|
|
||||||
php$PHP_VER-pgsql \
|
|
||||||
php$PHP_VER-ps \
|
|
||||||
php$PHP_VER-pspell \
|
|
||||||
php$PHP_VER-raphf \
|
|
||||||
php$PHP_VER-readline \
|
|
||||||
php$PHP_VER-snmp \
|
|
||||||
php$PHP_VER-soap \
|
|
||||||
php$PHP_VER-sqlite3 \
|
|
||||||
php$PHP_VER-stomp \
|
|
||||||
php$PHP_VER-sybase \
|
|
||||||
php$PHP_VER-tidy \
|
|
||||||
php$PHP_VER-xdebug \
|
|
||||||
php$PHP_VER-xml \
|
|
||||||
php$PHP_VER-xsl \
|
|
||||||
php$PHP_VER-zip \
|
|
Reference in New Issue
Block a user