mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 02:56:31 +00:00
Update dockerfile
This commit is contained in:
parent
490ea547f9
commit
941b7aceb0
@ -2,6 +2,7 @@ FROM %%BASE_IMAGE%%
|
|||||||
|
|
||||||
# Add version
|
# Add version
|
||||||
ENV VERSION %%HASS_VERSION%%
|
ENV VERSION %%HASS_VERSION%%
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
|
||||||
# install core packages
|
# install core packages
|
||||||
RUN apk --no-cache add libuv git linux-headers eudev-dev libusb-dev
|
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/
|
WORKDIR /usr/src/
|
||||||
RUN pip3 install --no-cache-dir cython==0.25.2
|
RUN pip3 install --no-cache-dir cython==0.25.2
|
||||||
|
|
||||||
WORKDIR /usr/src/python-openzwave/
|
|
||||||
RUN git clone https://github.com/OpenZWave/python-openzwave \
|
RUN git clone https://github.com/OpenZWave/python-openzwave \
|
||||||
&& cd python-openzwave \
|
&& cd python-openzwave \
|
||||||
&& git checkout v0.3.2 \
|
&& git checkout v0.3.2 \
|
||||||
|
@ -2,6 +2,7 @@ FROM %%BASE_IMAGE%%
|
|||||||
|
|
||||||
# Add version
|
# Add version
|
||||||
ENV VERSION %%SUPERVISOR_TAG%%
|
ENV VERSION %%SUPERVISOR_TAG%%
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
|
||||||
# remove several traces of python
|
# remove several traces of python
|
||||||
RUN apk del --no-cache 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 docker \
|
||||||
&& pip3 install --no-cache-dir colorlog
|
&& 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" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user