diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e9bb0d8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM debian:latest +LABEL maintainer="ahwx@ahwx.org" +RUN apt-get -y update && apt-get -y install php php-curl nginx nginx-common git +RUN git clone https://github.com/Ahwxorg/pinternet /var/www/html/pinternet +RUN systemctl enable --now nginx php-fpm +COPY nginx.conf /etc/nginx/sites-available/pinternet +EXPOSE 8009 +CMD ["/usr/sbin/nginx", "-g", "daemon off;"] + diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..c7598aa --- /dev/null +++ b/nginx.conf @@ -0,0 +1,11 @@ +server { + listen 8009; + + root /var/www/html/pinternet; + index index.php; + + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/run/php/php-fpm.sock; + } +}