Update dockerfile

This commit is contained in:
pvizeli 2017-03-27 15:03:41 +02:00
parent 490ea547f9
commit 941b7aceb0
2 changed files with 7 additions and 2 deletions

View File

@ -2,6 +2,7 @@ FROM %%BASE_IMAGE%%
# Add version
ENV VERSION %%HASS_VERSION%%
ENV LANG C.UTF-8
# install core packages
RUN apk --no-cache add libuv git linux-headers eudev-dev libusb-dev
@ -14,7 +15,6 @@ RUN apk --no-cache add ffmpeg nmap net-tools
WORKDIR /usr/src/
RUN pip3 install --no-cache-dir cython==0.25.2
WORKDIR /usr/src/python-openzwave/
RUN git clone https://github.com/OpenZWave/python-openzwave \
&& cd python-openzwave \
&& git checkout v0.3.2 \

View File

@ -2,6 +2,7 @@ FROM %%BASE_IMAGE%%
# Add version
ENV VERSION %%SUPERVISOR_TAG%%
ENV LANG C.UTF-8
# remove several traces of python
RUN apk del --no-cache python*
@ -19,4 +20,8 @@ RUN pip3 install pip --no-cache-dir --upgrade \
&& pip3 install --no-cache-dir docker \
&& pip3 install --no-cache-dir colorlog
CMD [ "bash" ]
# install HassIO
COPY hassio_api /usr/src/hassio_api
RUN pip3 install --no-cache-dir /usr/src/hassio_api
CMD [ "hassio" ]