FROM python:3.12-alpine

WORKDIR /app

COPY requirements.txt /app/requirements.txt
COPY --chown=1001:1001 status_bot.py /app/status_bot.py
COPY --chown=1001:1001 dashboard.html /app/dashboard.html
COPY --chown=1001:1001 services.example.json /app/services.json

RUN pip install --no-cache-dir -r /app/requirements.txt
RUN adduser -D -u 1001 -g "" -h /app archive-status

CMD ["python", "/app/status_bot.py"]
