123456789101112131415161718192021222324 |
- FROM ubuntu:16.04
- ARG DEBIAN_FRONTEND=noninteractive
- RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
- RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
- RUN apt-get update -yqq > /dev/null
- RUN apt-get install -yqq nginx git unzip php7.2 php7.2-common php7.2-cli php7.2-fpm php7.2-mysql php7.2-mongodb > /dev/null
- RUN apt-get install -yqq composer > /dev/null
- COPY deploy/conf/* /etc/php/7.2/fpm/
- ADD ./ /phalcon
- WORKDIR /phalcon
- RUN apt-get install -yqq php7.2-phalcon > /dev/null
- RUN composer install --quiet
- RUN chmod -R 777 app
- CMD service php7.2-fpm start && \
- nginx -c /phalcon/deploy/nginx.conf -g "daemon off;"
|