mirror of
https://github.com/hwanny1128/HGZero.git
synced 2026-01-21 14:56:24 +00:00
Update Dockerfile-rag
This commit is contained in:
parent
e93f8d03f9
commit
d7f90705d4
@ -49,11 +49,11 @@ ENV PATH="/opt/venv/bin:$PATH"
|
|||||||
USER ${USERNAME}
|
USER ${USERNAME}
|
||||||
|
|
||||||
# Expose port
|
# Expose port
|
||||||
EXPOSE 8088
|
EXPOSE 8080
|
||||||
|
|
||||||
# Health check
|
# Health check
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
|
||||||
CMD python -c "import requests; requests.get('http://localhost:8088/health')" || exit 1
|
CMD python -c "import requests; requests.get('http://localhost:8080/health')" || exit 1
|
||||||
|
|
||||||
# Run the application
|
# Run the application
|
||||||
CMD ["uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "8088"]
|
CMD ["uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "8080"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user