1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-02 00:20:30 +01:00

Adjust docker file to be multistage

This commit is contained in:
Robert Resch
2026-03-27 17:32:58 +01:00
parent 78aa5b9913
commit aae63cb397
2 changed files with 6 additions and 2 deletions

4
Dockerfile generated
View File

@@ -2,7 +2,7 @@
#
# To update, run python3 -m script.hassfest -p docker
ARG BUILD_FROM
FROM ${BUILD_FROM}
FROM ${BUILD_FROM} as deps
LABEL \
io.hass.type="core" \
@@ -50,6 +50,8 @@ RUN \
--no-build \
-r homeassistant/requirements_all.txt
FROM deps
## Setup Home Assistant Core
COPY . homeassistant/
RUN \

View File

@@ -17,7 +17,7 @@ DOCKERFILE_TEMPLATE = r"""# Automatically generated by hassfest.
#
# To update, run python3 -m script.hassfest -p docker
ARG BUILD_FROM
FROM ${{BUILD_FROM}}
FROM ${{BUILD_FROM}} as deps
LABEL \
io.hass.type="core" \
@@ -65,6 +65,8 @@ RUN \
--no-build \
-r homeassistant/requirements_all.txt
FROM deps
## Setup Home Assistant Core
COPY . homeassistant/
RUN \