mirror of
https://github.com/Ahwxorg/Binternet.git
synced 2026-03-11 08:54:37 +00:00
trying to add docker support
This commit is contained in:
parent
035f972d34
commit
a48cf7019d
2 changed files with 20 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
|
@ -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;"]
|
||||
|
||||
11
nginx.conf
Normal file
11
nginx.conf
Normal file
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue