mirror of
https://github.com/Ahwxorg/Binternet.git
synced 2026-03-11 08:54:37 +00:00
Docker support has been added. More soon.
This commit is contained in:
parent
a48cf7019d
commit
64317b7946
1 changed files with 4 additions and 6 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -1,9 +1,7 @@
|
|||
FROM debian:latest
|
||||
FROM debian:11
|
||||
LABEL maintainer="ahwx@ahwx.org"
|
||||
RUN apt-get -y update && apt-get -y install php php-curl nginx nginx-common git
|
||||
RUN apt-get -y update && apt-get -y install php php-fpm 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
|
||||
COPY nginx.conf /etc/nginx/sites-enabled/pinternet
|
||||
EXPOSE 8009
|
||||
CMD ["/usr/sbin/nginx", "-g", "daemon off;"]
|
||||
|
||||
CMD service php$(php -v | grep PHP | head -n1 | cut -d " " -f2 | cut -d "." -f1-2)-fpm start && /usr/sbin/nginx -g "daemon off;"
|
||||
|
|
|
|||
Loading…
Reference in a new issue