FROM python:3.9-slim

WORKDIR /app

RUN pip install requests

COPY monitor.py dashboard.html ./

RUN echo "[]" > metrics.json

EXPOSE 80

CMD nohup python monitor.py & python -m http.server 80