From a48cf7019db6ea98c3e488be11bb28b7b287fe49 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Sat, 20 May 2023 11:52:09 +0200 Subject: [PATCH] trying to add docker support --- Dockerfile | 9 +++++++++ nginx.conf | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 Dockerfile create mode 100644 nginx.conf 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; + } +}