Эх сурвалжийг харах

install python_openzwave in separate step to decrease build time by utilizing docker cache

Fabian Peter Hammerle 5 жил өмнө
parent
commit
1f50f77932

+ 1 - 1
Dockerfile

@@ -15,10 +15,10 @@ VOLUME /config
 USER hass
 ENV PATH "/home/hass/.local/bin:${PATH}"
 
+RUN pip install --user --no-cache-dir python_openzwave==0.4.9
 COPY --chown=hass ./runtime-requirements.txt /tmp
 RUN pip install --user --no-cache-dir --requirement /tmp/runtime-requirements.txt \
     && rm /tmp/runtime-requirements.txt
-RUN pip install --user --no-cache-dir cryptography==2.3.1
 
 RUN pip install --user --no-cache-dir \
     homeassistant==0.80.3 \

+ 1 - 1
runtime-requirements.txt

@@ -1,8 +1,8 @@
+cryptography==2.3.1
 PyQRCode==1.2.1
 aiohttp_cors==0.7.0
 distro==1.3.0
 flux_led==0.21
 pydispatcher==2.0.5
 pyotp==2.2.6
-python_openzwave==0.4.9
 sqlalchemy==1.2.11