瀏覽代碼

Remove man packages in docker image

Vadim Markovtsev 7 年之前
父節點
當前提交
9b8e7ca5e4
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      Dockerfile

+ 4 - 3
Dockerfile

@@ -3,10 +3,10 @@ FROM ubuntu:16.04
 ENV GOPATH /root
 
 RUN apt-get update && \
-    apt-get install -y software-properties-common && \
+    apt-get install -y --no-install-suggests --no-install-recommends software-properties-common && \
     add-apt-repository -y ppa:gophers/archive && \
     apt-get update && \
-    apt-get install -y locales golang-1.9-go python3 python3-dev libyaml-dev libyaml-0-2 curl git && \
+    apt-get install -y --no-install-suggests --no-install-recommends locales golang-1.9-go python3 python3-dev libyaml-dev libyaml-0-2 curl git && \
     locale-gen en_US.UTF-8 && \
     /usr/lib/go-*/bin/go get -v gopkg.in/src-d/hercules.v2/cmd/hercules && \
     cp /root/bin/hercules /usr/local/bin && \
@@ -22,7 +22,7 @@ echo\n\' > /browser && \
     pip3 install --no-cache-dir -r /root/src/gopkg.in/src-d/hercules.v2/requirements.txt https://github.com/mind/wheels/releases/download/tf1.3-cpu/tensorflow-1.3.0-cp35-cp35m-linux_x86_64.whl && \
     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 remove -y *-doc *-man && \
     apt-get autoremove -y && \
     rm -rf /var/lib/apt/lists/* && \
     apt-get clean
@@ -30,3 +30,4 @@ echo\n\' > /browser && \
 EXPOSE 8000
 ENV BROWSER /browser
 ENV LC_ALL en_US.UTF-8
+ENV COUPLES_SERVER_TIME 7200