working 3 tier approach

This commit is contained in:
2026-06-11 22:34:55 -07:00
parent 4482a30793
commit e5fef8b181
47 changed files with 1288 additions and 200 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM docker.io/library/python:3.12-slim AS base
WORKDIR /app
RUN pip install --no-cache-dir gunicorn uvicorn psycopg2-binary
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "2"]