15 lines
703 B
Docker
15 lines
703 B
Docker
FROM homeassistant/home-assistant:2021.3.4
|
|
|
|
COPY src/ /usr/src/homeassistant/homeassistant/
|
|
|
|
RUN mkdir -p /usr/local/config/custom_components && \
|
|
touch /usr/local/config/home-assistant.log && \
|
|
cd /usr/local/config && \
|
|
wget -q -O - https://install.hacs.xyz | bash - && \
|
|
cat /usr/local/config/custom_components/hacs/manifest.json | jq -r .requirements[] | xargs /usr/local/bin/python3 -m pip install --quiet --no-cache-dir --upgrade --constraint /usr/src/homeassistant/homeassistant/package_constraints.txt --find-links https://wheels.home-assistant.io/alpine-3.10/amd64/ --prefer-binary
|
|
|
|
ADD entrypoint.sh /entrypoint.sh
|
|
|
|
ENV PYTHONUSERBASE /config/deps
|
|
ENTRYPOINT ["/entrypoint.sh"]
|