php.ymp 594 B

1234567891011121314
  1. FROM debian:stable
  2. RUN apt update -y
  3. RUN apt upgrade -y
  4. run apt install -y nginx-full
  5. RUN apt -y install lsb-release ca-certificates curl
  6. RUN apt -y install curl
  7. RUN curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
  8. RUN dpkg -i /tmp/debsuryorg-archive-keyring.deb
  9. RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
  10. RUN apt update -y
  11. COPY nginx/nginx.sh /root/
  12. RUN chmod a+x /root/nginx.sh
  13. CMD ['/bin/bash','/root/nginx.sh']