Skip to content

Commit d3c2654

Browse files
committed
refactor: speedup rebuild time
1 parent 338b97b commit d3c2654

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
FROM ubuntu:16.04
2-
MAINTAINER Doro Wu <fcwu.tw@gmail.com>
3-
4-
ENV DEBIAN_FRONTEND noninteractive
2+
LABEL maintainer="fcwu.tw@gmail.com"
53

64
RUN sed -i 's#http://archive.ubuntu.com/#http://tw.archive.ubuntu.com/#' /etc/apt/sources.list
75

@@ -32,12 +30,13 @@ RUN apt-get update \
3230

3331

3432
# tini for subreap
35-
ENV TINI_VERSION v0.9.0
33+
ARG TINI_VERSION=v0.9.0
3634
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /bin/tini
3735
RUN chmod +x /bin/tini
3836

37+
ADD image/usr/lib/web/requirements.txt /tmp/
38+
RUN pip install setuptools wheel && pip install -r /tmp/requirements.txt
3939
ADD image /
40-
RUN pip install setuptools wheel && pip install -r /usr/lib/web/requirements.txt
4140

4241
EXPOSE 80
4342
WORKDIR /root

0 commit comments

Comments
 (0)