forked from banianhost/docker-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (37 loc) · 1.58 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM ubuntu
#MAINTAINER Pooya Parsa <[email protected]>
ENV HOME=/var/www \
TERM=xterm \
SHELL=bash \
DEBIAN_FRONTEND=noninteractive \
NODE_ENV=production \
PHP_VERSION=7.2
EXPOSE 80
ENTRYPOINT ["entrypoint"]
RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get install -y \
bash supervisor nginx git curl sudo zip unzip xz-utils libxrender1 gnupg \
php php-apcu php-bz2 php-cli php-curl php-fpm php-gd php-geoip \
php-gettext php-gmp php-imagick php-imap php-json php-mbstring php-zip \
php-memcached php-mongodb php-mysql php-pear php-redis php-xml php-intl php-soap \
php-sqlite3 php-dompdf php-fpdf php-ssh2 php-bcmath && \
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash && \
apt-get install -y nodejs && \
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- && \
ln -sfv /root/.yarn/bin/* /bin && \
ln -sfv /root/.yarn/bin/node-gyp-bin/node-gyp /bin/node-gyp && \
rm -rf /var/cache/apt && rm -rf /var/lib/apt && \
curl -sS https://getcomposer.org/installer | \
php -- --install-dir=/usr/bin --filename=composer && \
mkdir -p /run/php && \
mkdir -p /var/www && \
chown -R www-data:www-data /var/www /root && \
ln -vs /var/www/ /home/www-data && \
ln -fs /conf/www.conf /etc/php/${PHP_VERSION}/fpm/pool.d/www.conf && \
ln -fs /conf/php.ini /etc/php/${PHP_VERSION}/fpm/php.ini && \
ln -fs /conf/nginx.conf /etc/nginx/nginx.conf && \
ln -fs /conf/nginx-default /etc/nginx/conf.d/default.conf && \
ln -fs /conf/supervisord.conf /etc/supervisord.conf
COPY bin /bin
COPY conf /conf