-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
73 lines (66 loc) · 1.84 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
FROM alpine:3.11
RUN apk update \
&& apk add --no-cache \
nginx \
nano \
curl \
supervisor \
git \
zip \
unzip \
php7 \
php7-phar \
php7-dom \
php7-fpm \
php7-mbstring \
php7-mcrypt \
php7-opcache \
php7-pdo \
php7-pdo_mysql \
php7-pdo_pgsql \
php7-pdo_sqlite \
php7-pdo_odbc \
php7-pdo_dblib \
php7-json \
php7-xml \
php7-xmlwriter \
php7-xmlrpc \
php7-xmlreader \
php7-simplexml \
php7-soap \
php7-tokenizer \
php7-openssl \
php7-json \
php7-curl \
php7-ctype \
php7-zlib \
php7-posix \
php7-pcntl \
php7-iconv \
php7-session \
php7-dev \
php7-pear \
php7-fileinfo \
openssl-dev \
g++ \
make
COPY . /
RUN addgroup -g 1000 -S www \
&& adduser -u 1000 -D -S -G www -h /app -g www www \
&& mkdir -p /var/tmp/nginx \
&& chown -R www:www /var/lib/nginx /var/tmp/nginx \
&& mkdir -p /etc/nginx/conf.d \
&& mkdir -p /etc/php7/php-fpm.d \
&& cp -rf /docker/nginx/nginx.conf /etc/nginx/nginx.conf \
&& cp -rf /docker/nginx/default.conf /etc/nginx/conf.d/default.conf \
&& cp -rf /docker/php/php.ini /etc/php7/php.ini \
&& cp -rf /docker/php/www.conf /etc/php7/php-fpm.d/www.conf \
&& cp -rf /docker/supervisor/supervisor.conf /etc/supervisord.conf \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
RUN pecl install -f mongodb \
&& echo 'extension=mongodb.so' > /etc/php7/conf.d/30_mongodb.ini
WORKDIR /app
# portal
EXPOSE 80
# start
CMD ["/docker/start.sh"]