13 lines
273 B
Docker
13 lines
273 B
Docker
FROM python:3.12-alpine
|
|
ARG BUILD_VER
|
|
|
|
RUN apk update && apk upgrade --no-cache
|
|
|
|
RUN pip install --no-cache-dir pyserial RouterOS-API influxdb3-python
|
|
|
|
COPY ./ups.py /home/ups.py
|
|
COPY ./utils.py /home/pyutils/utils.py
|
|
|
|
ENV VER=${BUILD_VER}
|
|
CMD [ "python", "/home/ups.py" ]
|