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:
commit
9051256b11
|
|
@ -28,5 +28,5 @@ htmlcov/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
||||||
|
# Generated Git Info
|
||||||
|
.git_*_info
|
||||||
|
|
|
||||||
|
|
@ -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"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue