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:
4
Dockerfile
generated
4
Dockerfile
generated
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user