mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-13 12:16:29 +00:00
Improve docker build cache for supervisor (#651)
This commit is contained in:
parent
087f746647
commit
0d4a808449
18
Dockerfile
18
Dockerfile
@ -1,15 +1,17 @@
|
|||||||
ARG BUILD_FROM
|
ARG BUILD_FROM
|
||||||
FROM $BUILD_FROM
|
FROM $BUILD_FROM
|
||||||
|
|
||||||
# Setup base
|
# Install base
|
||||||
|
apk add --no-cache \
|
||||||
|
git \
|
||||||
|
socat \
|
||||||
|
glib \
|
||||||
|
libstdc++ \
|
||||||
|
eudev-libs
|
||||||
|
|
||||||
|
# Install requirements
|
||||||
COPY requirements.txt /usr/src/
|
COPY requirements.txt /usr/src/
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache --virtual .build-dependencies \
|
||||||
git \
|
|
||||||
socat \
|
|
||||||
glib \
|
|
||||||
libstdc++ \
|
|
||||||
eudev-libs \
|
|
||||||
&& apk add --no-cache --virtual .build-dependencies \
|
|
||||||
make \
|
make \
|
||||||
g++ \
|
g++ \
|
||||||
&& pip3 install --no-cache-dir -r /usr/src/requirements.txt \
|
&& pip3 install --no-cache-dir -r /usr/src/requirements.txt \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user