diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..620b4da --- /dev/null +++ b/Caddyfile @@ -0,0 +1,4 @@ +:80 { + root * /srv + file_server +} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..432feea --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# Use official Caddy image +FROM caddy:2-alpine + +# Copy Caddy configuration +COPY Caddyfile /etc/caddy/Caddyfile + +# Copy static site files +COPY css /srv/css +COPY en /srv/en +COPY no /srv/no +COPY index.html /srv + +# Expose HTTP port +EXPOSE 80 + +# Explicitly run Caddy +CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"]