- Simplified Dockerfile to serve static files directly (no Next.js build) - Copied redesign files (index.html, style.css, main.js) to out/ - Added brand/favicon assets - Backed up previous Next.js build to out.backup.* - Container rebuilt and verified healthy on port 8080 Co-Authored-By: Paperclip <noreply@paperclip.ing>
16 lines
368 B
Docker
16 lines
368 B
Docker
# Production - Static landing page
|
|
FROM nginx:alpine AS production
|
|
|
|
# Copy custom nginx config
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# Copy static files from build context
|
|
COPY out/ /usr/share/nginx/html
|
|
|
|
# Expose port (internal only, no SSL)
|
|
EXPOSE 80
|
|
|
|
# Health check
|
|
HEALTHCHECK --interval=30s --timeout=3s \
|
|
CMD wget -qO- http://localhost:80/ || exit 1
|