Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

18 lines
778B

  1. FROM bingen/ARCH_PLACEHOLDER-nginx
  2. # Add PHP 7.2 repo
  3. RUN apt-get update && \
  4. apt-get install -y apt-transport-https lsb-release ca-certificates wget && \
  5. wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
  6. sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
  7. # update and install php
  8. RUN apt-get update && \
  9. apt-get install -y php7.2 php7.2-fpm php-pear php7.2-common \
  10. php7.2-mysql php7.2-cli php7.2-gd php7.2-curl php-apcu php7.2-opcache \
  11. php7.2-mbstring php7.2-ldap php7.2-zip && \
  12. apt-get clean
  13. # overwrite the default-configuration with our own settings - enabling PHP
  14. COPY default /etc/nginx/sites-available/default
  15. CMD service php7.2-fpm start && nginx