Skip to content

Commit

Permalink
Merge pull request #82 from harlev/optimize_dockerfile
Browse files Browse the repository at this point in the history
Optimize Dockerfile
  • Loading branch information
bryanyang0528 committed Aug 27, 2020
2 parents 11b7525 + 70c7a2a commit e74b650
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 .

0 comments on commit e74b650

Please sign in to comment.