-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
44 lines (36 loc) · 811 Bytes
/
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
43
44
FROM alpine:3.3
RUN apk --update add \
nginx \
php-fpm \
php-pdo \
php-json \
php-openssl \
php-mysql \
php-pdo_mysql \
php-mcrypt \
php-sqlite3 \
php-pdo_sqlite \
php-ctype \
php-zlib \
php-curl \
php-phar \
php-xml \
php-opcache \
php-intl \
php-bcmath \
php-dom \
php-xmlreader \
curl \
supervisor \
&& rm -rf /var/cache/apk/*
# install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
RUN mkdir -p /etc/nginx
RUN mkdir -p /var/run/php-fpm
RUN mkdir -p /var/log/supervisor
RUN rm /etc/nginx/nginx.conf
ADD nginx.conf /etc/nginx/nginx.conf
VOLUME ["/var/www", "/etc/nginx/sites-enabled"]
ADD nginx-supervisor.ini /etc/supervisor.d/nginx-supervisor.ini
EXPOSE 80 9000
CMD ["/usr/bin/supervisord"]