Initial Docker build, updated requirements

This commit is contained in:
bohdan-s
2021-12-21 16:34:18 +11:00
parent dbe390ec33
commit 4a6b3b52a1
2 changed files with 14 additions and 2 deletions
+11
View File
@@ -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" ]
+3 -2
View File
@@ -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