From 4a6b3b52a1e0283a99acfaac642f18aeefbb8630 Mon Sep 17 00:00:00 2001 From: bohdan-s Date: Tue, 21 Dec 2021 16:34:18 +1100 Subject: [PATCH] Initial Docker build, updated requirements --- Dockerfile | 11 +++++++++++ requirements.txt | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e7ad160 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3 + +WORKDIR /usr/src/sungather + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY SunGather/ . +RUN touch /usr/src/sungather/config.yaml + +CMD [ "python", "sungather.py" ] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index f8ba1d9..b63ec74 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ +PyYAML>=6.0 +requests>=2.26.0 paho-mqtt>=1.5.1 pymodbus>=2.4.0 SungrowModbusTcpClient>=0.1.5 -SungrowModbusWebClient>=0.2.4 - +SungrowModbusWebClient>=0.2.5