You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 line
865B

  1. FROM bingen/ARCH_PLACEHOLDER-nginx
  2. # Add PHP 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. php8.2 php8.2-fpm php-pear php8.2-common \
  11. php8.2-mysql php8.2-cli php8.2-gd php8.2-curl php8.2-apcu php8.2-opcache \
  12. php8.2-mbstring php8.2-ldap php8.2-zip php8.2-intl php8.2-imagick \
  13. php8.2-bcmath php8.2-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 php8.2-fpm start && nginx