diff --git a/Dockerfile.dev b/Dockerfile.dev index 4c2a7ebe9e3ab1..d72ebcaed016e3 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -23,9 +23,10 @@ RUN git clone --depth 1 https://github.com/home-assistant/hass-release \ WORKDIR /workspaces # Install Python dependencies from requirements -COPY requirements_test.txt requirements_test_pre_commit.txt homeassistant/package_constraints.txt ./ -RUN pip3 install -r requirements_test.txt -c package_constraints.txt \ - && rm -f requirements_test.txt package_constraints.txt requirements_test_pre_commit.txt +COPY requirements_test.txt requirements_test_pre_commit.txt ./ +COPY homeassistant/package_constraints.txt homeassistant/package_constraints.txt +RUN pip3 install -r requirements_test.txt \ + && rm -rf requirements_test.txt requirements_test_pre_commit.txt homeassistant/ # Set the default shell to bash instead of sh ENV SHELL /bin/bash