Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

20 lines
869B

  1. FROM bingen/ARCH_PLACEHOLDER-nginx
  2. # Add PHP 7.4 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 --allow-unauthenticated \
  10. php7.4 php7.4-fpm php-pear php7.4-common \
  11. php7.4-mysql php7.4-cli php7.4-gd php7.4-curl php7.4-apcu php7.4-opcache \
  12. php7.4-mbstring php7.4-ldap php7.4-zip php7.4-intl php7.4-imagick \
  13. php7.4-bcmath php7.4-xml && \
  14. apt-get clean
  15. # overwrite the default-configuration with our own settings - enabling PHP
  16. COPY default /etc/nginx/sites-available/default
  17. CMD service php7.4-fpm start && nginx