Skip to content

Commit e668d70

Browse files
committed
optimize Dockerfile
1 parent 3510aea commit e668d70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM frolvlad/alpine-python3
2-
32
WORKDIR /app
4-
COPY . /app
3+
COPY *requirements* /app/
54
RUN sed -i -e 's/v3\.8/edge/g' /etc/apk/repositories \
65
&& apk upgrade --update-cache --available \
76
&& apk add --no-cache librdkafka librdkafka-dev
87
RUN apk add --no-cache alpine-sdk python3-dev
98
RUN pip install -r requirements.txt
109
RUN pip install -r test-requirements.txt
10+
COPY . /app
1111
RUN pip install -e .
12+

0 commit comments

Comments
 (0)