Added caddy config including 404 error page #3

Merged
tboerger merged 1 commits from caddy into master 2016-11-11 14:45:28 +00:00
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
}
}