updated
هذا الالتزام موجود في:
13
test-projects/fastapi-test/.gy.json
Normal file
13
test-projects/fastapi-test/.gy.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"app": "fastapi-test",
|
||||
"project": "fastapi-test",
|
||||
"_app_id": "2a0c0168-dbf0-4f95-a5e9-a7e330bc56d9",
|
||||
"_project_id": "e3d04bd4-e8cd-4c19-9a32-5393be67587f",
|
||||
"port": 8000,
|
||||
"publicAccess": {
|
||||
"enabled": true,
|
||||
"domain": "fastapi-test-f38b02d3c679.hosted.ghaymah.systems"
|
||||
},
|
||||
"resourceTier": "t1",
|
||||
"_detected": "python"
|
||||
}
|
||||
23
test-projects/fastapi-test/Dockerfile
Normal file
23
test-projects/fastapi-test/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
# 🐍 Auto-generated Dockerfile for Python 3.12
|
||||
# Ghaymah detected: FastAPI
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
gcc \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy and install Python dependencies
|
||||
COPY requirements.txt* setup.py* pyproject.toml* ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt 2>/dev/null || true
|
||||
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8080
|
||||
|
||||
# Start the application
|
||||
CMD ["sh", "-c", "python main.py"]
|
||||
7
test-projects/fastapi-test/main.py
Normal file
7
test-projects/fastapi-test/main.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
@app.get("/")
|
||||
def hello():
|
||||
return {"message": "Hello from FastAPI!"}
|
||||
2
test-projects/fastapi-test/requirements.txt
Normal file
2
test-projects/fastapi-test/requirements.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
fastapi
|
||||
uvicorn
|
||||
المرجع في مشكلة جديدة
حظر مستخدم