소스 검색

Improve Dockerfile

Vadim Markovtsev 7 년 전
부모
커밋
ae95e66b8f
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      Dockerfile

+ 3 - 1
Dockerfile

@@ -12,8 +12,10 @@ RUN apt-get update && \
     cp -r /root/src/gopkg.in/src-d/hercules.v2/*.py /root/src/gopkg.in/src-d/hercules.v2/pb /usr/local/bin && \
     sed -i 's/parser.add_argument("--backend",/parser.add_argument("--backend", default="Agg",/' /usr/local/bin/labours.py && \
     curl https://bootstrap.pypa.io/get-pip.py | python3 && \
-    pip3 install -r /root/src/gopkg.in/src-d/hercules.v2/requirements.txt && \
+    pip3 install --no-cache-dir -r /root/src/gopkg.in/src-d/hercules.v2/requirements.txt && \
     rm -rf /root/* && \
     apt-get remove -y software-properties-common golang-1.9-go python3-dev libyaml-dev curl git && \
+    apt-get remove *-doc && \
     apt-get autoremove -y && \
+    rm -rf /var/lib/apt/lists/* && \
     apt-get clean