-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
55 lines (45 loc) · 1.13 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
FROM phusion/baseimage
RUN curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | bash
RUN \
apt-get update \
&& apt-get -y upgrade \
&& apt-get update --fix-missing
RUN \
apt-get install -y \
php7.0 \
php7.0-bcmath \
php7.0-cli \
php7.0-common \
php7.0-fpm \
php7.0-gd \
php7.0-gmp \
php7.0-intl \
php7.0-json \
php7.0-mbstring \
php7.0-mcrypt \
php7.0-mysqlnd \
php7.0-opcache \
php7.0-pdo \
php7.0-xml \
php7.0-phalcon
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
RUN service php7.0-fpm start
RUN \
apt-get install -y \
nodejs \
npm \
git
RUN \
apt-get install -y \
nginx-full \
supervisor
RUN apt-get clean
RUN apt-get autoclean
COPY build/.bashrc /root/.bashrc
COPY build/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY build/nginx.conf /etc/nginx/sites-enabled/default
COPY build/php.ini /etc/php/7.0/fpm/php.ini
ADD src /var/www/public/
EXPOSE 80 443
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]