diff --git a/Dockerfile b/Dockerfile index 5375cae..8826afc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build public with hugo -FROM jojomi/hugo:latest +FROM registry.fk.jochum.dev/docker_hub_cache/jojomi/hugo:latest COPY . /build @@ -8,7 +8,7 @@ WORKDIR /build RUN hugo -b https://rene.jochum.dev -v -t persona # Copy to a nginx container -FROM caddy:2.5.2-alpine +FROM registry.fk.jochum.dev/docker_hub_cache/library/caddy:2.5.2-alpine LABEL maintainer="René Jochum " diff --git a/docker/caddy/Caddyfile b/docker/caddy/Caddyfile index 836b1bc..3fb0db1 100644 --- a/docker/caddy/Caddyfile +++ b/docker/caddy/Caddyfile @@ -1,17 +1,19 @@ :80 { - # Set this path to your site's directory. - root * /usr/share/caddy + log - # Compress responses according to Accept-Encoding headers - encode zstd gzip + # Set this path to your site's directory. + root * /usr/share/caddy - # Client side caching - @static { - file - path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2 - } - header @static Cache-Control max-age=31536000 + # Compress responses according to Accept-Encoding headers + encode zstd gzip - # Enable the static file server. - file_server -} + # Client side caching + @static { + file + path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2 + } + header @static Cache-Control max-age=31536000 + + # Enable the static file server. + file_server +} \ No newline at end of file