cygnite.dockerfile 739 B

123456789101112131415161718192021
  1. FROM ubuntu:16.04
  2. ARG DEBIAN_FRONTEND=noninteractive
  3. RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
  4. RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
  5. RUN apt-get update -yqq > /dev/null
  6. RUN apt-get install -yqq nginx git unzip php5.6 php5.6-common php5.6-cli php5.6-fpm php5.6-mysql php5.6-xml php5.6-mbstring php5.6-mcrypt > /dev/null
  7. RUN apt-get install -yqq composer > /dev/null
  8. COPY deploy/conf/* /etc/php/5.6/fpm/
  9. RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.sock|g" /etc/php/5.6/fpm/php-fpm.conf
  10. ADD ./ /cygnite
  11. WORKDIR /cygnite
  12. RUN composer install --quiet
  13. CMD service php5.6-fpm start && \
  14. nginx -c /cygnite/deploy/nginx.conf -g "daemon off;"