-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (24 loc) · 1.04 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
FROM richarvey/nginx-php-fpm:php5
ENV WEBROOT=/var/www/html/public
RUN apk update && apk add php5-sockets memcached
WORKDIR /tmp
# Run build process on one line to avoid generating bloat via intermediate images
ADD docker/phalcon.so /usr/lib/php5/modules/phalcon.so
RUN /bin/echo 'extension=phalcon.so' > /etc/php5/conf.d/phalcon.ini
# COPY composer.json composer.json
# COPY composer.lock composer.lock
ADD docker/supervisord.conf /tmp/supervisord.conf
RUN cat /tmp/supervisord.conf >> /etc/supervisord.conf
ADD docker/nginx.conf /etc/nginx/sites-enabled/default.conf
ADD docker/run.sh /run.sh
ADD docker/start_chat.sh /srv/start_chat.sh
RUN chmod +x /srv/start_chat.sh /run.sh
ADD . /var/www/html
RUN chmod 777 -R /var/www/html/app/cache
WORKDIR /var/www/html
# RUN mkdir vendor && composer global require hirak/prestissimo && composer install && ls -lha /var/www/html/vendor/
# Finish composer and generate minified assets (for the website)
# RUN ls -lha /var/www/html/vendor/ && cd public/ && php assets.php
EXPOSE 8080
EXPOSE 8081
CMD ["/run.sh"]