FROM python:3.12-slim

WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY map_read.py map_mqtt.py ./

ENV PYTHONUNBUFFERED=1
USER nobody
CMD ["python", "map_mqtt.py"]
