Ghaymah SRE exam submission - Mohamed Adel
هذا الالتزام موجود في:
17
q5-mithal-monitor/Dockerfile
Normal file
17
q5-mithal-monitor/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
# ---- Base image ----
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# ---- Copy app files ----
|
||||
COPY monitor.py .
|
||||
COPY dashboard.html .
|
||||
COPY entrypoint.sh .
|
||||
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
# ---- Expose the dashboard port ----
|
||||
EXPOSE 8080
|
||||
|
||||
# ---- Run monitor.py in the background + serve dashboard.html on 8080 ----
|
||||
CMD ["./entrypoint.sh"]
|
||||
المرجع في مشكلة جديدة
حظر مستخدم