Files
Document_translator/Dockerfile.nginx
2025-10-02 17:13:24 +08:00

18 lines
443 B
Nginx Configuration File

# Nginx Dockerfile for PANJIT Document Translator V2
FROM nginx:1.25-alpine
# Copy custom nginx configuration
COPY nginx/nginx.conf /etc/nginx/nginx.conf
# Set proper permissions
RUN chmod 644 /etc/nginx/nginx.conf
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:12010/api/health || exit 1
# Expose port
EXPOSE 12010
# Start nginx
CMD ["nginx", "-g", "daemon off;"]