File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 7
7
8
8
WORKDIR /usr/src
9
9
10
- # # Setup Home Assistant
10
+ # # Setup Home Assistant Core dependencies
11
+ COPY requirements.txt homeassistant/
12
+ COPY homeassistant/package_constraints.txt homeassistant/homeassistant/
13
+ RUN \
14
+ pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
15
+ -r homeassistant/requirements.txt
16
+ COPY requirements_all.txt homeassistant/
17
+ RUN \
18
+ pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
19
+ -r homeassistant/requirements_all.txt
20
+
21
+ # # Setup Home Assistant Core
11
22
COPY . homeassistant/
12
23
RUN \
13
24
pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
14
- -r homeassistant/requirements_all.txt \
15
- && pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
16
25
-e ./homeassistant \
17
26
&& python3 -m compileall homeassistant/homeassistant
18
27
Original file line number Diff line number Diff line change @@ -30,11 +30,12 @@ RUN git clone --depth 1 https://github.com/home-assistant/hass-release \
30
30
WORKDIR /workspaces
31
31
32
32
# Install Python dependencies from requirements
33
- COPY requirements.txt requirements_test.txt requirements_test_pre_commit.txt ./
33
+ COPY requirements.txt ./
34
34
COPY homeassistant/package_constraints.txt homeassistant/package_constraints.txt
35
- RUN pip3 install -r requirements.txt \
36
- && pip3 install -r requirements_test.txt \
37
- && rm -rf requirements.txt requirements_test.txt requirements_test_pre_commit.txt homeassistant/
35
+ RUN pip3 install -r requirements.txt
36
+ COPY requirements_test.txt requirements_test_pre_commit.txt ./
37
+ RUN pip3 install -r requirements_test.txt
38
+ RUN rm -rf requirements.txt requirements_test.txt requirements_test_pre_commit.txt homeassistant/
38
39
39
40
# Set the default shell to bash instead of sh
40
41
ENV SHELL /bin/bash
You can’t perform that action at this time.
0 commit comments