17 lines
458 B
Docker
17 lines
458 B
Docker
FROM nginx:alpine
|
|
|
|
# Copy nginx configuration
|
|
COPY ./frontend/nginx.prod.conf /etc/nginx/nginx.conf
|
|
|
|
# Copy frontend files (includes version.txt for frontend version display)
|
|
COPY ./frontend/public /usr/share/nginx/html
|
|
|
|
# Expose ports
|
|
EXPOSE 80 443
|
|
|
|
# Health check
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
CMD wget --no-verbose --tries=1 --spider http://localhost/health.html || exit 1
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|