All checks were successful
continuous-integration/drone/push Build is passing
22 lines
991 B
Docker
22 lines
991 B
Docker
FROM homeassistant/home-assistant:2025.2.3
|
|
|
|
#COPY src/ /usr/src/homeassistant/homeassistant/
|
|
|
|
# Fix https://github.com/home-assistant/core/pull/137492
|
|
RUN cd /usr/src/homeassistant/homeassistant && \
|
|
sed -i s,AsyncMDNSResolver,AsyncDualMDNSResolver,g helpers/aiohttp_client.py && \
|
|
pip install aiohttp-asyncmdnsresolver==0.1.0
|
|
|
|
# Install HACS
|
|
RUN mkdir -p /usr/local/config/custom_components && \
|
|
touch /usr/local/config/home-assistant.log && \
|
|
cd /usr/local/config && \
|
|
hass --version > .HA_VERSION && \
|
|
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/musllinux/ --prefer-binary
|
|
|
|
ADD entrypoint.sh /entrypoint.sh
|
|
|
|
ENV PYTHONUSERBASE /config/deps
|
|
ENTRYPOINT ["/entrypoint.sh"]
|