From d3c2654e53c68fcf2cc88afb72af2a759af8860f Mon Sep 17 00:00:00 2001 From: DoroWu Date: Sun, 25 Feb 2018 18:44:55 +0800 Subject: [PATCH] refactor: speedup rebuild time --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c3ec99e..38f9eb7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ FROM ubuntu:16.04 -MAINTAINER Doro Wu - -ENV DEBIAN_FRONTEND noninteractive +LABEL maintainer="fcwu.tw@gmail.com" RUN sed -i 's#http://archive.ubuntu.com/#http://tw.archive.ubuntu.com/#' /etc/apt/sources.list @@ -32,12 +30,13 @@ RUN apt-get update \ # tini for subreap -ENV TINI_VERSION v0.9.0 +ARG TINI_VERSION=v0.9.0 ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /bin/tini RUN chmod +x /bin/tini +ADD image/usr/lib/web/requirements.txt /tmp/ +RUN pip install setuptools wheel && pip install -r /tmp/requirements.txt ADD image / -RUN pip install setuptools wheel && pip install -r /usr/lib/web/requirements.txt EXPOSE 80 WORKDIR /root