feat: complete initial project structure for API and Monitoring Dashboards
هذا الالتزام موجود في:
7
api/Dockerfile
Normal file
7
api/Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
||||
FROM python:3.11-slim
|
||||
WORKDIR /app
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY app.py app.py
|
||||
EXPOSE 8080
|
||||
CMD ["python", "app.py"]
|
||||
10
api/app.py
Normal file
10
api/app.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from flask import Flask, jsonify
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/health')
|
||||
def health():
|
||||
return jsonify({"status": "ok"})
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', port=8080)
|
||||
1
api/requirements.txt
Normal file
1
api/requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
Flask==3.0.3
|
||||
المرجع في مشكلة جديدة
حظر مستخدم