| 1234567891011121314 |
- FROM debian:stable
- RUN apt update -y
- RUN apt upgrade -y
- run apt install -y nginx-full
- RUN apt -y install lsb-release ca-certificates curl
- RUN apt -y install curl
- RUN curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
- RUN dpkg -i /tmp/debsuryorg-archive-keyring.deb
- 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'
- RUN apt update -y
- COPY nginx/nginx.sh /root/
- RUN chmod a+x /root/nginx.sh
- CMD ['/bin/bash','/root/nginx.sh']
|