Merge pull request 'feat(docker): embed git metadata and add greenlet async dependency' (#10) from git-info-container into main

Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/10
Reviewed-by: Amit Salunke <amit@noreply.localhost>
This commit is contained in:
Amit Salunke 2026-10-15 05:08:04 +00:00
commit 9051256b11
2 changed files with 6 additions and 2 deletions

4
.gitignore vendored
View File

@ -28,5 +28,5 @@ htmlcov/
.DS_Store .DS_Store
Thumbs.db Thumbs.db
# Generated Git Info
.git_*_info

View File

@ -23,6 +23,9 @@ COPY README.md ./
COPY docs/accupedia_db_v5.sql /app/schema/accupedia_db_v5.sql COPY docs/accupedia_db_v5.sql /app/schema/accupedia_db_v5.sql
COPY app ./app COPY app ./app
# Copy git info metadata if generated on host
COPY .git_api_info* /app/.git_api_info
# Install project and CLI scripts into PATH # Install project and CLI scripts into PATH
RUN pip install --no-cache-dir -e . RUN pip install --no-cache-dir -e .
@ -32,3 +35,4 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD curl -f http://localhost:8000/ || exit 1 CMD curl -f http://localhost:8000/ || exit 1
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]