mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-22 16:46:29 +00:00
Disable uv cache when creating container image (#5646)
We don't intent to run uv again, so the cache is not really useful. The cache directory size is around 80MB, however, the files are mostly hardlinks to the original files in `/usr/local/lib/python3.13/site-packages` so the actual saving is much smaller.
This commit is contained in:
parent
5f8e41b441
commit
37bc703bbb
@ -34,16 +34,17 @@ RUN \
|
|||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN \
|
RUN \
|
||||||
if [ "${BUILD_ARCH}" = "i386" ]; then \
|
if [ "${BUILD_ARCH}" = "i386" ]; then \
|
||||||
linux32 uv pip install --compile-bytecode --no-build -r requirements.txt; \
|
setarch="linux32"; \
|
||||||
else \
|
else \
|
||||||
uv pip install --compile-bytecode --no-build -r requirements.txt; \
|
setarch=""; \
|
||||||
fi \
|
fi \
|
||||||
|
&& ${setarch} uv pip install --compile-bytecode --no-cache --no-build -r requirements.txt \
|
||||||
&& rm -f requirements.txt
|
&& rm -f requirements.txt
|
||||||
|
|
||||||
# Install Home Assistant Supervisor
|
# Install Home Assistant Supervisor
|
||||||
COPY . supervisor
|
COPY . supervisor
|
||||||
RUN \
|
RUN \
|
||||||
uv pip install -e ./supervisor \
|
uv pip install --no-cache -e ./supervisor \
|
||||||
&& python3 -m compileall ./supervisor/supervisor
|
&& python3 -m compileall ./supervisor/supervisor
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user