FROM python:3.12-alpine RUN apk update && apk upgrade --no-cache RUN pip install --no-cache-dir pyserial RouterOS-API influxdb-client COPY ./ups.py /home/ups.py CMD [ "python", "/home/ups.py" ]