Initial commit: FastAPI starter template

هذا الالتزام موجود في:
mustafalasheen
2025-04-15 15:49:05 +02:00
التزام 151f02837f
3 ملفات معدلة مع 21 إضافات و0 حذوفات

12
Dockerfile Normal file
عرض الملف

@@ -0,0 +1,12 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]

7
main.py Normal file
عرض الملف

@@ -0,0 +1,7 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def root():
return {"message": "MARHABA in Ghaymah"}

2
requirements.txt Normal file
عرض الملف

@@ -0,0 +1,2 @@
fastapi==0.104.1
uvicorn==0.24.0