From e668d70fc58ece2dccd6b920db2edbfaa6c71ed0 Mon Sep 17 00:00:00 2001 From: Ron Harlev Date: Tue, 25 Aug 2020 14:52:26 -0700 Subject: [PATCH] optimize Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 617238b..318dab4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ FROM frolvlad/alpine-python3 - WORKDIR /app -COPY . /app +COPY *requirements* /app/ RUN sed -i -e 's/v3\.8/edge/g' /etc/apk/repositories \ && apk upgrade --update-cache --available \ && apk add --no-cache librdkafka librdkafka-dev RUN apk add --no-cache alpine-sdk python3-dev RUN pip install -r requirements.txt RUN pip install -r test-requirements.txt +COPY . /app RUN pip install -e . +