diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..3c042ec --- /dev/null +++ b/Caddyfile @@ -0,0 +1,7 @@ +:8080 { + root * /app + encode gzip zstd + try_files {path} /index.html + file_server + log +} diff --git a/Dockerfile b/Dockerfile index 02e5df0..5191bab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,6 @@ FROM caddy:2 WORKDIR /app COPY --from=builder /app/dist/ /app/ +COPY Caddyfile /etc/caddy/Caddyfile EXPOSE 8080 -CMD ["/usr/bin/caddy", "file-server", "--access-log", "--listen", ":8080"]