CHECKOK
This commit is contained in:
@@ -62,9 +62,9 @@ COPY --from=frontend-builder /app/frontend/dist ./static
|
||||
# Create required directories
|
||||
RUN mkdir -p uploads logs scripts
|
||||
|
||||
# Create startup script (removed redundant celery worker)
|
||||
# Create startup script using Gunicorn + eventlet for production
|
||||
RUN echo '#!/bin/bash' > /app/start.sh && \
|
||||
echo 'python app.py' >> /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
|
||||
@@ -83,4 +83,4 @@ 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"]
|
||||
CMD ["/app/start.sh"]
|
||||
|
Reference in New Issue
Block a user