add custom caddy file

This commit is contained in:
OCram85 2021-12-30 21:12:13 +01:00
parent 19c74194a2
commit e483e91e46
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
:8088 {
:8080 {
root * /usr/share/caddy
file_server
encode gzip zstd

View File

@ -8,7 +8,8 @@ RUN npm install \
FROM caddy:2.4.6-alpine
LABEL maintainer="marco.blessing@googlemail.com"
COPY --from=builder /src/Caddyfile /etc/caddy/Caddyfile
COPY --from=builder src/public /usr/share/caddy/
HEALTHCHECK --interval=15s --timeout=3s \
CMD wget --no-verbose --tries=1 --spider http://localhost:80/ || exit 1
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1
#RUN ls -la /usr/share/caddy/