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