mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-04-21 03:37:15 +00:00
29 lines
581 B
Docker
29 lines
581 B
Docker
ARG BUILD_FROM
|
|
FROM $BUILD_FROM
|
|
|
|
# Add env
|
|
ENV LANG C.UTF-8
|
|
|
|
# Setup base
|
|
RUN apk add --no-cache \
|
|
git \
|
|
socat \
|
|
glib \
|
|
libstdc++ \
|
|
eudev-libs \
|
|
&& apk add --no-cache --virtual .build-dependencies \
|
|
make \
|
|
g++ \
|
|
&& pip3 install --no-cache-dir \
|
|
uvloop==0.10.2 \
|
|
cchardet==2.1.1 \
|
|
pycryptodome==3.6.4 \
|
|
&& apk del .build-dependencies
|
|
|
|
# Install HassIO
|
|
COPY . /usr/src/hassio
|
|
RUN pip3 install --no-cache-dir /usr/src/hassio \
|
|
&& rm -rf /usr/src/hassio
|
|
|
|
CMD [ "python3", "-m", "hassio" ]
|