Backend con base de datos relacional MySQL

This commit is contained in:
Mireya Cueto Garrido
2026-03-27 09:02:28 +01:00
parent e9a3bf6c21
commit 57b64b4f1e
15 changed files with 106 additions and 19 deletions
+6 -2
View File
@@ -2,6 +2,10 @@ FROM python:3.10-slim
WORKDIR /app
RUN pip install fastapi uvicorn
COPY requirements.txt .
CMD ["uvicorn", "api.routes:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]