-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
58 lines (52 loc) · 1.35 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM alpine:3.4
MAINTAINER Amrit G.C. <music.demand01@gmail.com>
RUN apk --update add --no-cache --update \
nginx \
curl \
php5-cli \
php5-common \
php5-fpm \
php5-phar \
php5-pdo \
php5-json \
php5-openssl \
php5-mysql \
php5-pdo_mysql \
php5-mcrypt \
php5-opcache \
php5-sqlite3 \
php5-pdo_sqlite \
php5-ctype \
php5-zlib \
php5-curl \
php5-gd \
php5-xml \
php5-dom \
supervisor \
xvfb \
ttf-freefont \
fontconfig \
dbus \
qt5-qtbase-dev; \
apk add --no-cache \
--update \
--repository http://dl-3.alpinelinux.org/alpine/edge/community/ \
--allow-untrusted \
php5-xdebug; \
apk add --no-cache \
--update \
--repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
--allow-untrusted \
wkhtmltopdf \
php5-memcached;
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer; \
chmod +x /usr/local/bin/composer;
RUN rm /etc/nginx/nginx.conf
ADD conf/nginx.conf /etc/nginx/nginx.conf
ADD conf/default.conf /etc/nginx/default.d/default.conf
ADD conf/nginx-supervisor.ini /etc/supervisor/conf.d/nginx-supervisor.ini
RUN rm -rf /var/cache/apk/*
WORKDIR /app
COPY conf/zzz-custom.ini /etc/php5/conf.d/
EXPOSE 80
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/nginx-supervisor.ini"]