# Build the final Caddy image FROM caddy:2-alpine # Copy the pre-compressed static assets from the build context. # These assets are extracted from the main Airflow image by the Ansible playbook. COPY caddy_build_assets/appbuilder /usr/share/caddy/static/appbuilder COPY caddy_build_assets/dist /usr/share/caddy/static/dist # Copy the Caddyfile configuration. The build context is the project root, # so the path is relative to that. COPY configs/Caddyfile /etc/caddy/Caddyfile # Expose the port Caddy listens on EXPOSE 8080