Files
site-slavic-pulse-com/Dockerfile
T
tomasz-syn-grzegorza 3a843c53f3 Move template assets to .env-driven generation.
Site metadata, images, favicons, and YouTube settings are now configured via .env and rendered from HTML/manifest templates at dev or container startup.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 15:45:04 +02:00

25 lines
752 B
Docker

FROM nginx:1.27-alpine AS production
RUN apk add --no-cache gettext
# Remove default nginx config
RUN rm /etc/nginx/conf.d/default.conf
# Copy nginx config from project root
COPY default.conf /etc/nginx/conf.d/default.conf
# Copy static assets
COPY assets/ /usr/share/nginx/html/assets/
# Templates + generator (rendered at container start)
COPY index.html.template site.webmanifest.template generate-from-env.sh /opt/slavic-pulse/
RUN chmod +x /opt/slavic-pulse/generate-from-env.sh
COPY docker-entrypoint.sh /docker-entrypoint.d/99-generate-from-env.sh
RUN chmod +x /docker-entrypoint.d/99-generate-from-env.sh
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -qO- http://localhost:80/ || exit 1