connect to database; separate dev and prod DATABASE_URL

This commit is contained in:
2026-05-15 21:17:21 +08:00
parent 2787eb961d
commit 07829fa16e
4 changed files with 52 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
FROM python:3.14-slim
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir fastapi uvicorn sqlalchemy psycopg2-binary httpx python-jose
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]