Saving port clarification.
This commit is contained in:
@@ -4,7 +4,7 @@ FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11
|
||||
|
||||
LABEL maintainer="Scott Idem <scott.idem@oneskyit.com>"
|
||||
|
||||
# 1. Install OS dependencies FIRST.
|
||||
# 1. Install OS dependencies FIRST.
|
||||
# These are the slowest to install and change the least.
|
||||
# Doing this before WORKDIR or any COPY ensures maximum caching.
|
||||
RUN apt-get update && \
|
||||
@@ -25,11 +25,12 @@ RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
||||
RUN pip freeze > /tmp/aether_fastapi_requirements_current.txt
|
||||
|
||||
# NOTE: The application source is mounted as a volume in docker-compose.yml
|
||||
# for real-time development. We don't COPY the source here to keep the
|
||||
# for real-time development. We don't COPY the source here to keep the
|
||||
# image generic and the build near-instant when code changes.
|
||||
|
||||
# Docker health check — verifies DB + Redis connectivity via the /health route.
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||
CMD curl -f http://localhost/health || exit 1
|
||||
# CMD curl -f http://localhost/health || exit 1
|
||||
CMD curl -f http://localhost:5005/health || exit 1
|
||||
|
||||
CMD ["gunicorn", "--conf", "/conf/gunicorn_fastapi_conf.py"]
|
||||
|
||||
Reference in New Issue
Block a user