Last active
October 9, 2018 06:08
-
-
Save rilwanfit/c7f02da8b6990261528e8adac3b092ae to your computer and use it in GitHub Desktop.
ubuntu-nginx-php-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 ubuntu:18.04 | |
LABEL maintainer="mhrilwan" | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update \ | |
&& apt-get install -y gnupg tzdata \ | |
&& echo "UTC" > /etc/timezone \ | |
&& dpkg-reconfigure -f noninteractive tzdata | |
RUN apt-get update \ | |
&& apt-get install -y curl zip unzip git supervisor sqlite3 \ | |
nginx php7.2-fpm php7.2-cli \ | |
php7.2-pgsql php7.2-sqlite3 php7.2-gd \ | |
php7.2-curl php7.2-memcached \ | |
php7.2-imap php7.2-mysql php7.2-mbstring \ | |
php7.2-xml php7.2-zip php7.2-bcmath php7.2-soap \ | |
php7.2-intl php7.2-readline php7.2-xdebug \ | |
php-msgpack php-igbinary \ | |
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \ | |
&& mkdir /run/php \ | |
&& apt-get -y autoremove \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | |
&& echo "deamon off;" >> /etc/nginx/nginx.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment