Remove unnecessary files
هذا الالتزام موجود في:
13
q5-mithal-monitor/Dockerfile
Normal file
13
q5-mithal-monitor/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
RUN chmod +x start.sh
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["./start.sh"]
|
||||
11
q5-mithal-monitor/Start.sh
Normal file
11
q5-mithal-monitor/Start.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash\
|
||||
# Runs the background monitoring loop (monitor.py) and serves the
|
||||
# dashboard + monitor_data.json over HTTP at the same time.
|
||||
|
||||
set -e
|
||||
|
||||
# Start the monitor in the background; it updates monitor_data.json every 60s
|
||||
python monitor.py &
|
||||
|
||||
# Serve the current directory (dashboard.html + monitor_data.json)
|
||||
python -m http.server 8080
|
||||
تم حذف اختلاف الملف لأن الملف كبير جداً
تحميل الاختلاف
1
q5-mithal-monitor/requirements.txt
Normal file
1
q5-mithal-monitor/requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
requests
|
||||
المرجع في مشكلة جديدة
حظر مستخدم