Files
site-slavic-pulse-com/Dockerfile
T
tomasz-syn-grzegorza 833e248518 Add post-video redirect to YouTube URL from env config.
After the intro finishes, users are redirected to POST_VIDEO_REDIRECT_URL loaded via generated config.js for dev, Docker, and Dokploy deployments.

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

22 lines
698 B
Docker

FROM nginx:1.27-alpine AS production
# 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 web files (index.html + assets)
COPY index.html /usr/share/nginx/html/index.html
COPY site.webmanifest /usr/share/nginx/html/site.webmanifest
COPY assets/ /usr/share/nginx/html/assets/
# Generate config.js from env vars at container start
COPY generate-config.sh /docker-entrypoint.d/99-generate-config.sh
RUN chmod +x /docker-entrypoint.d/99-generate-config.sh
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -qO- http://localhost:80/ || exit 1