public:home_assistant-docker-beter-division
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:home_assistant-docker-beter-division [2026/10/30 17:55] – lukas | public:home_assistant-docker-beter-division [2026/10/31 08:16] (current) – [Setup Home Assistant Core dependencies] lukas | ||
|---|---|---|---|
| Line 41: | Line 41: | ||
| COPY requirements.txt ./ | COPY requirements.txt ./ | ||
| COPY homeassistant/ | COPY homeassistant/ | ||
| + | </ | ||
| + | < | ||
| + | # 3b. DODATEČNÉ KOMPILAČNÍ NÁSTROJE A SYSTÉMOVÉ PYAV | ||
| + | # Přidán py3-av, který obsahuje nativně zkompilované PyAV pro vaši verzi FFmpeg | ||
| + | RUN apk add --no-cache \ | ||
| + | cmake rust cargo samurai ccache autoconf automake \ | ||
| + | jpeg-dev openjpeg-dev tiff-dev freetype-dev lcms2-dev libwebp-dev \ | ||
| + | ffmpeg-dev pkgconfig py3-av | ||
| + | |||
| + | # 4. Zkopírování textových souborů závislostí | ||
| + | WORKDIR /tmp | ||
| + | COPY requirements.txt ./ | ||
| + | COPY homeassistant/ | ||
| + | |||
| + | # ========================================================================= | ||
| + | # NOVÝ KROK: Odstranění av z requirements, | ||
| + | # ========================================================================= | ||
| + | RUN sed -i '/ | ||
| + | |||
| + | # 5. Spuštění kompilace do specifické složky | ||
| + | RUN --mount=type=cache, | ||
| + | echo -e " | ||
| + | uv pip install \ | ||
| + | --config-settings=setup-args=" | ||
| + | --config-settings=compile-args=" | ||
| + | --index-strategy unsafe-best-match \ | ||
| + | --target / | ||
| + | -r requirements.txt && \ | ||
| + | rm / | ||
| + | |||
| + | # ... (zde ponechte vaše LABEL a ENV definice) ... | ||
| + | |||
| + | ## Setup Home Assistant Core dependencies | ||
| + | COPY --parents requirements.txt homeassistant/ | ||
| + | RUN \ | ||
| + | go2rtc --version \ | ||
| + | && pip3 install --no-cache-dir " | ||
| + | && sed -i '/ | ||
| + | && UV_CONCURRENT_BUILDS=1 uv pip install \ | ||
| + | --index-strategy unsafe-best-match \ | ||
| + | -r homeassistant/ | ||
| + | |||
| + | COPY requirements_all.txt home_assistant_frontend-* home_assistant_intents-* homeassistant/ | ||
| + | RUN \ | ||
| + | if ls homeassistant/ | ||
| + | uv pip install homeassistant/ | ||
| + | fi \ | ||
| + | && sed -i '/ | ||
| + | && UV_CONCURRENT_BUILDS=1 uv pip install \ | ||
| + | --index-strategy unsafe-best-match \ | ||
| + | -r homeassistant/ | ||
| + | |||
| + | ## Setup Home Assistant Core | ||
| + | COPY --parents LICENSE* README* homeassistant/ | ||
| + | # Na konec linkujeme systémové PyAV z Alpine do naší složky compiled-packages | ||
| + | RUN \ | ||
| + | uv pip install -e ./ | ||
| + | && cp -r / | ||
| + | && python3 -m compileall homeassistant/ | ||
| + | |||
| + | WORKDIR /config | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | ## Setup Home Assistant Core dependencies | ||
| + | COPY --parents requirements.txt homeassistant/ | ||
| + | RUN \ | ||
| + | go2rtc --version \ | ||
| + | && pip3 install --no-cache-dir " | ||
| + | && export CFLAGS=" | ||
| + | && export UV_CONCURRENT_BUILDS=1 \ | ||
| + | && uv pip install \ | ||
| + | --index-strategy unsafe-best-match \ | ||
| + | -r homeassistant/ | ||
| + | |||
| + | COPY requirements_all.txt home_assistant_frontend-* home_assistant_intents-* homeassistant/ | ||
| + | RUN \ | ||
| + | if ls homeassistant/ | ||
| + | uv pip install homeassistant/ | ||
| + | fi \ | ||
| + | && export CFLAGS=" | ||
| + | && export UV_CONCURRENT_BUILDS=1 \ | ||
| + | && uv pip install \ | ||
| + | --index-strategy unsafe-best-match \ | ||
| + | -r homeassistant/ | ||
| + | |||
| </ | </ | ||
public/home_assistant-docker-beter-division.1793382914.txt.gz · Last modified: by lukas
