Dockerfile 808 B

12345678910111213141516171819202122232425262728293031
  1. FROM romeoz/docker-nginx-php:5.6
  2. RUN locale-gen fr_FR.utf8
  3. # Relocate the timezone file
  4. RUN mkdir -p /config/etc && mv /etc/timezone /config/etc/ && ln -s /config/etc/timezone /etc/
  5. # Set the time zone
  6. RUN echo "Europe/Paris" > /config/etc/timezone
  7. # Set timezone as specified in /config/etc/timezone
  8. RUN dpkg-reconfigure -f noninteractive tzdata
  9. RUN echo "START" \
  10. && apt-get update \
  11. && apt-get install -y php-pear \
  12. && pear config-set php_ini /etc/php5/fpm/php.ini \
  13. && apt-get install -y build-essential \
  14. && apt-get install -y php5-dev \
  15. && apt-get install -y libcurl3-openssl-dev \
  16. && apt-get install -y libyaml-dev \
  17. && pecl install yaml \
  18. && rm -rf /var/lib/apt/lists/* \
  19. && echo "END"
  20. WORKDIR /var/www/app/
  21. EXPOSE 80 433
  22. CMD ["/usr/bin/supervisord"]