feat: bootstrap backend with docker and healthcheck

This commit is contained in:
2026-02-09 14:16:38 +01:00
commit a84d6b66cd
5 changed files with 59 additions and 0 deletions

10
backend/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM python:3.11-slim
WORKDIR /app
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"]

7
backend/app/main.py Normal file
View File

@@ -0,0 +1,7 @@
from fastapi import FastAPI
app = FastAPI(title="Card Game Backend")
@app.get("/health")
def health_check():
return {"status": "ok"}

5
backend/requirements.txt Normal file
View File

@@ -0,0 +1,5 @@
fastapi
uvicorn
sqlalchemy
psycopg2-binary
asyncpg