Automazione build e deploy

This commit is contained in:
2025-06-01 10:15:04 +02:00
parent 021b7e70af
commit 8aad6a6936
3 changed files with 21 additions and 0 deletions

View File

@@ -1,9 +1,12 @@
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" ]