FROM python:3.12-slim

WORKDIR /app

COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

COPY . .

RUN mv dashboard.html index.html

EXPOSE 8080

CMD sh -c "python3 monitor.py && python3 -m http.server 8080"
