Added caddy config including 404 error page #3
@ -8,5 +8,7 @@ RUN apk update && \
|
||||
rm -rf \
|
||||
/var/cache/apk/*
|
||||
|
||||
CMD ["/usr/sbin/caddy", "-port", "80", "-root", "/srv/www"]
|
||||
ADD public /srv/www
|
||||
CMD ["/usr/sbin/caddy", "-conf", "/etc/caddy/caddy.conf"]
|
||||
|
||||
COPY docker/caddy.conf /etc/caddy/caddy.conf
|
||||
COPY public /srv/www
|
||||
|
7
docker/caddy.conf
Normal file
7
docker/caddy.conf
Normal file
@ -0,0 +1,7 @@
|
||||
:80 {
|
||||
root /srv/www
|
||||
|
||||
errors {
|
||||
404 /404.html
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user