This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -2,14 +2,23 @@ FROM homeassistant/home-assistant:2022.8
|
|||||||
|
|
||||||
#COPY src/ /usr/src/homeassistant/homeassistant/
|
#COPY src/ /usr/src/homeassistant/homeassistant/
|
||||||
|
|
||||||
|
# Install HACS
|
||||||
RUN mkdir -p /usr/local/config/custom_components && \
|
RUN mkdir -p /usr/local/config/custom_components && \
|
||||||
touch /usr/local/config/home-assistant.log && \
|
touch /usr/local/config/home-assistant.log && \
|
||||||
cd /usr/local/config && \
|
cd /usr/local/config && \
|
||||||
wget -q -O - https://install.hacs.xyz | bash - && \
|
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
|
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
|
||||||
|
|
||||||
|
# Install spotcast
|
||||||
RUN cd /tmp && \
|
RUN cd /tmp && \
|
||||||
wget https://github.com/zacs/ha-dualmodegeneric/archive/refs/heads/master.zip && \
|
wget -q -O spotcast.tar.gz https://github.com/fondberg/spotcast/archive/refs/tags/v3.7.0.tar.gz && \
|
||||||
|
tar xzf spotcast.tar.gz && \
|
||||||
|
mv spotcast-*/custom_components/spotcast /usr/local/config/custom_components/ && \
|
||||||
|
rm -rf /tmp/*
|
||||||
|
|
||||||
|
# Install dualmodegeneric thermostat
|
||||||
|
RUN cd /tmp && \
|
||||||
|
wget -q https://github.com/zacs/ha-dualmodegeneric/archive/refs/heads/master.zip && \
|
||||||
unzip master.zip && \
|
unzip master.zip && \
|
||||||
mv ha-dualmodegeneric-master/custom_components/* /usr/local/config/custom_components/ && \
|
mv ha-dualmodegeneric-master/custom_components/* /usr/local/config/custom_components/ && \
|
||||||
rm -rf /tmp/*
|
rm -rf /tmp/*
|
||||||
|
|||||||
Reference in New Issue
Block a user