Feat: Caddy webserver (#102)

* describe Caddyfile & update Dockerfile runtime image

* remove nginx config - replaced by caddy
This commit is contained in:
2026-02-24 00:22:31 +01:00
committed by GitHub
parent 8e586811ec
commit 1238cf50cc
4 changed files with 39 additions and 52 deletions

View File

@@ -23,21 +23,16 @@ ENV VITE_ELASTIC_API_KEY=$ELASTIC_API_KEY
RUN yarn build
FROM nginx:1.29.5
FROM caddy:2.11-alpine
COPY Caddyfile /etc/caddy/Caddyfile
# Copy static files
COPY public /usr/share/caddy
# Copy the static build from the previous stage
COPY index.html /usr/share/nginx/html
COPY public/ /usr/share/nginx/html
COPY --from=build /app/dist /usr/share/nginx/html
COPY --from=build /app/dist /usr/share/caddy
# Copy nginx config file
COPY nginx.conf /etc/nginx/conf.d/default.conf.template
# Manual entrypoint after nginx substring
COPY docker-entrypoint.sh /docker-entrypoint.d/05-docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.d/05-docker-entrypoint.sh
EXPOSE 5000
EXPOSE 8080
LABEL org.opencontainers.image.source https://github.com/kevinmidboe/seasoned