test
This commit is contained in:
parent
6690b4d9bd
commit
a1b95b6a8b
@ -6,6 +6,7 @@ WORKDIR /app
|
||||
RUN apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
postgresql-client \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy requirements
|
||||
@ -26,7 +27,7 @@ EXPOSE 8000
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD python -c "import requests; requests.get('http://localhost:8000/health')" || exit 1
|
||||
CMD curl -fsS http://localhost:8000/health || exit 1
|
||||
|
||||
# Run uvicorn
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
fastapi==0.104.1
|
||||
uvicorn==0.24.0
|
||||
psycopg2-binary==2.9.9
|
||||
passlib==1.7.4.1
|
||||
bcrypt==4.1.1
|
||||
passlib==1.7.4
|
||||
bcrypt==4.1.2
|
||||
python-jose[cryptography]==3.3.0
|
||||
python-multipart==0.0.6
|
||||
alembic==1.13.1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user