改用API驗證
This commit is contained in:
18
Dockerfile.nginx
Normal file
18
Dockerfile.nginx
Normal file
@@ -0,0 +1,18 @@
|
||||
# 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;"]
|
Reference in New Issue
Block a user