feat: add ai-python ci/cd

This commit is contained in:
djeon
2025-10-30 10:37:33 +09:00
parent 663999a139
commit 155894c3ff
4 changed files with 232 additions and 8 deletions
+3 -3
View File
@@ -43,11 +43,11 @@ ENV PATH="/opt/venv/bin:$PATH"
USER ${USERNAME}
# Expose port
EXPOSE 8087
EXPOSE 8080
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD python -c "import requests; requests.get('http://localhost:8087/health')" || exit 1
CMD python -c "import requests; requests.get('http://localhost:8080/health')" || exit 1
# Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8087"]
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]