FROM caddy:2.4.0 WORKDIR / COPY ./dist /dist COPY Caddyfile /Caddyfile VOLUME /data CMD ["caddy", "run", "--config", "/Caddyfile"] # DO NOT FORGET TO USE VOLUME OR CERTBOT WILL BAN: -v caddy_data:/data