This commit is contained in:
William 2023-02-12 15:54:15 +01:00
parent f1b09039a6
commit 1a0a9f635e
4 changed files with 2 additions and 7 deletions

View File

@ -7,10 +7,5 @@ RUN apk update && \
chown -R www:www /var/lib/nginx && \
chown -R www:www /www
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
COPY ./docker/run.sh /opt/run.sh
RUN chmod +x /opt/run.sh
ENTRYPOINT ["tini", "--"]
CMD ["/opt/run.sh"]

View File

@ -6,4 +6,4 @@ Made by yours truly
docker build --no-cache -f ./Dockerfile --tag willy-club-website
docker run -dt -v ./:/www -p 8080:8080 --name willy-club-website willy-club-website
docker run -dt -v ./:/www -v ./docker/nginx.conf:/etc/nginx/nginx.conf -v ./docker/run.sh:/opt/run.sh -p 8080:8080 --name willy-club-website willy-club-website

View File

@ -35,7 +35,7 @@ http {
}
location ~ \.php$ {
try_files $uri = 404;
try_files $uri = /;
fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
}

0
docker/run.sh Normal file → Executable file
View File