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