mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-10 03:19:32 +00:00
Feat: Caddy webserver (#102)
* describe Caddyfile & update Dockerfile runtime image * remove nginx config - replaced by caddy
This commit is contained in:
21
Dockerfile
21
Dockerfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user