Last active
January 24, 2018 17:45
-
-
Save geerteltink/5e610102b64d21d2378cd2d4edd6a842 to your computer and use it in GitHub Desktop.
Slim Debian 9 php-fpm image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:stretch-slim | |
LABEL description="Slim Debian 9 php-fpm image" | |
LABEL maintainer="@xtreamwayz" | |
RUN \ | |
# Install build dependencies | |
apt-get update -y \ | |
&& apt-get install -y --no-install-recommends wget apt-transport-https lsb-release ca-certificates \ | |
# Add key | |
&& wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg \ | |
&& echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list \ | |
&& apt-get update \ | |
# Install packages | |
&& apt-get install -y --no-install-recommends \ | |
php7.2-cli \ | |
php7.2-common \ | |
php7.2-fpm \ | |
php7.2-bcmath \ | |
php7.2-bz2 \ | |
php7.2-curl \ | |
php7.2-dom \ | |
php7.2-gd \ | |
php7.2-iconv \ | |
php7.2-intl \ | |
php7.2-json \ | |
php7.2-mbstring \ | |
php7.2-mysql \ | |
php7.2-opcache \ | |
php7.2-pdo \ | |
php7.2-soap \ | |
php7.2-sqlite3 \ | |
php7.2-xml \ | |
php7.2-xmlrpc \ | |
php7.2-zip \ | |
php7.2-redis \ | |
# Cleanup | |
&& apt-get remove --purge -y wget apt-transport-https lsb-release ca-certificates \ | |
&& apt autoremove -y \ | |
&& apt-get clean \ | |
&& rm -rf /tmp/* /var/tmp/* \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& df -h \ | |
&& php -m \ | |
&& php --version | |
CMD ["php-fpm"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment