mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-04-23 04:37:15 +00:00

* Replace pycrpytodome with cryptocraphy * Fix typing * fix typing * Fix lints * Fix build * Add musl libc * Fix lint * fix lint * Fix algo * Add more typing fix crypto imports v2 * Fix padding
34 lines
694 B
Docker
34 lines
694 B
Docker
ARG BUILD_FROM
|
|
FROM $BUILD_FROM
|
|
|
|
# Install base
|
|
RUN apk add --no-cache \
|
|
openssl \
|
|
libffi \
|
|
musl \
|
|
git \
|
|
socat \
|
|
glib \
|
|
libstdc++ \
|
|
eudev-libs
|
|
|
|
# Install requirements
|
|
COPY requirements.txt /usr/src/
|
|
RUN apk add --no-cache --virtual .build-dependencies \
|
|
make \
|
|
g++ \
|
|
openssl-dev \
|
|
libffi-dev \
|
|
musl-dev \
|
|
&& export MAKEFLAGS="-j$(nproc)" \
|
|
&& pip3 install --no-cache-dir -r /usr/src/requirements.txt \
|
|
&& apk del .build-dependencies \
|
|
&& rm -f /usr/src/requirements.txt
|
|
|
|
# Install HassIO
|
|
COPY . /usr/src/hassio
|
|
RUN pip3 install --no-cache-dir /usr/src/hassio \
|
|
&& rm -rf /usr/src/hassio
|
|
|
|
CMD [ "python3", "-m", "hassio" ]
|