agregando fastapi

This commit is contained in:
danielcruzmx
2026-03-11 18:18:42 -06:00
parent 1a2f9d6431
commit 9b1869ac14
6 changed files with 56 additions and 3 deletions

5
apps/api/Containerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM python:3.11-slim
COPY . /home
WORKDIR /home
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt

Binary file not shown.

7
apps/api/code/main.py Normal file
View File

@@ -0,0 +1,7 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def root():
return("Hola Mundo")

View File

@@ -0,0 +1,8 @@
fastapi
redis
gunicorn
postgres
uvicorn
SQLAlchemy
pydantic
databases