updated
هذا الالتزام موجود في:
13
test-projects/flask-test/.gy.json
Normal file
13
test-projects/flask-test/.gy.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"app": "flask-test",
|
||||
"project": "flask-test",
|
||||
"_app_id": "9c0e8d09-476f-4734-8667-c1ae9f071f8b",
|
||||
"_project_id": "11cab4ad-fd7a-45e6-b6a4-ba7ec05831e3",
|
||||
"port": 5000,
|
||||
"publicAccess": {
|
||||
"enabled": true,
|
||||
"domain": "flask-test-27a4a0302d14.hosted.ghaymah.systems"
|
||||
},
|
||||
"resourceTier": "t1",
|
||||
"_detected": "dockerfile"
|
||||
}
|
||||
23
test-projects/flask-test/Dockerfile
Normal file
23
test-projects/flask-test/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
# 🐍 Auto-generated Dockerfile for Python 3.12
|
||||
# Ghaymah detected: Flask
|
||||
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 app.py"]
|
||||
10
test-projects/flask-test/app.py
Normal file
10
test-projects/flask-test/app.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
def hello():
|
||||
return "Hello from Flask!"
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(host="0.0.0.0", port=5000)
|
||||
1
test-projects/flask-test/requirements.txt
Normal file
1
test-projects/flask-test/requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
Flask
|
||||
المرجع في مشكلة جديدة
حظر مستخدم