Improve docker build cache for supervisor (#651)

This commit is contained in:
Pascal Vizeli 2018-08-15 23:52:52 +02:00 committed by GitHub
parent 087f746647
commit 0d4a808449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,17 @@
ARG 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/
RUN apk add --no-cache \
git \
socat \
glib \
libstdc++ \
eudev-libs \
&& apk add --no-cache --virtual .build-dependencies \
RUN apk add --no-cache --virtual .build-dependencies \
make \
g++ \
&& pip3 install --no-cache-dir -r /usr/src/requirements.txt \