Added caddy config including 404 error page

This commit is contained in:
Thomas Boerger 2016-11-11 12:32:56 +01:00
parent 9f88513432
commit c63178c8db
No known key found for this signature in database
GPG key ID: 5A388F55283960B6
2 changed files with 11 additions and 2 deletions

View file

@ -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
View file

@ -0,0 +1,7 @@
:80 {
root /srv/www
errors {
404 /404.html
}
}