-
Notifications
You must be signed in to change notification settings - Fork 50
/
Dockerfile
31 lines (24 loc) · 695 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ARG BUILD_FROM
FROM $BUILD_FROM
ENV LANG C.UTF-8
# Build arugments
ARG BUILD_VERSION
ARG BUILD_ARCH
COPY requirements.txt ./
RUN apk add --no-cache python3-dev py3-pip g++
RUN pip install --break-system-packages --upgrade pycryptodomex~=3.11.0 --no-cache-dir -r requirements.txt
COPY SunGather/ /
COPY SunGather/exports/ /exports
COPY run.sh /
COPY config_generator.py /
VOLUME /logs
VOLUME /config
# Install requirements for add-on
RUN chmod a+x /run.sh
CMD ["/run.sh"]
LABEL \
io.hass.name="ModbusTCP2MQTT" \
io.hass.description="Sungrow-SMA Solar inverter communication Addon" \
io.hass.version=${BUILD_VERSION} \
io.hass.type="addon" \
io.hass.arch=${BUILD_ARCH}