backup
This commit is contained in:
@@ -62,11 +62,6 @@ COPY --from=frontend-builder /app/frontend/dist ./static
|
||||
# Create required directories
|
||||
RUN mkdir -p uploads logs scripts
|
||||
|
||||
# Create startup script using Gunicorn + eventlet for production
|
||||
RUN echo '#!/bin/bash' > /app/start.sh && \
|
||||
echo 'exec gunicorn -k eventlet -w 1 -b 0.0.0.0:12010 wsgi:app' >> /app/start.sh && \
|
||||
chmod +x /app/start.sh
|
||||
|
||||
# Set permissions
|
||||
RUN useradd -m -u 1000 appuser && \
|
||||
chown -R appuser:appuser /app && \
|
||||
@@ -82,5 +77,5 @@ EXPOSE 12010
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost:12010/api/v1/health || exit 1
|
||||
|
||||
# Start application
|
||||
CMD ["/app/start.sh"]
|
||||
# Run with Gunicorn for production (supports high concurrency)
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:12010", "--worker-class", "gthread", "--workers", "4", "--threads", "8", "--timeout", "600", "--keep-alive", "10", "--max-requests", "2000", "--max-requests-jitter", "200", "--forwarded-allow-ips", "*", "--access-logfile", "-", "wsgi:app"]
|
||||
|
Reference in New Issue
Block a user