Commit
This commit is contained in:
parent
f1b09039a6
commit
1a0a9f635e
@ -7,10 +7,5 @@ RUN apk update && \
|
|||||||
chown -R www:www /var/lib/nginx && \
|
chown -R www:www /var/lib/nginx && \
|
||||||
chown -R www:www /www
|
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", "--"]
|
ENTRYPOINT ["tini", "--"]
|
||||||
CMD ["/opt/run.sh"]
|
CMD ["/opt/run.sh"]
|
@ -6,4 +6,4 @@ Made by yours truly
|
|||||||
|
|
||||||
docker build --no-cache -f ./Dockerfile --tag willy-club-website
|
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
|
||||||
|
@ -35,7 +35,7 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
try_files $uri = 404;
|
try_files $uri = /;
|
||||||
fastcgi_pass 127.0.0.1:9000;
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
include fastcgi.conf;
|
include fastcgi.conf;
|
||||||
}
|
}
|
||||||
|
0
docker/run.sh
Normal file → Executable file
0
docker/run.sh
Normal file → Executable file
Loading…
Reference in New Issue
Block a user