Migrate to env-driven templates and slavic-pulse feature set.
Replace hardcoded HTML with .env generation, YouTube thumbnail backgrounds, responsive FHD/vertical intro, hardened nginx, and updated Dokploy deploy flow. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+12
-6
@@ -1,19 +1,25 @@
|
||||
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 nginx configs from project root
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
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 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/agencja-ai/
|
||||
RUN chmod +x /opt/agencja-ai/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
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
Reference in New Issue
Block a user