Saving port clarification.

This commit is contained in:
Scott Idem
2026-03-16 12:41:29 -04:00
parent eaa18a1d45
commit 5f3ba1e03e

View File

@@ -4,7 +4,7 @@ FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11
LABEL maintainer="Scott Idem <scott.idem@oneskyit.com>" 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. # These are the slowest to install and change the least.
# Doing this before WORKDIR or any COPY ensures maximum caching. # Doing this before WORKDIR or any COPY ensures maximum caching.
RUN apt-get update && \ 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 RUN pip freeze > /tmp/aether_fastapi_requirements_current.txt
# NOTE: The application source is mounted as a volume in docker-compose.yml # 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. # image generic and the build near-instant when code changes.
# Docker health check — verifies DB + Redis connectivity via the /health route. # Docker health check — verifies DB + Redis connectivity via the /health route.
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ 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"] CMD ["gunicorn", "--conf", "/conf/gunicorn_fastapi_conf.py"]