summaryrefslogtreecommitdiff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorkfei <kfei@kfei.net>2014-12-16 22:11:50 -0800
committerkfei <kfei@kfei.net>2014-12-16 22:49:43 -0800
commite9f974dc12cb7ab37f1fc089f0525bd491572a5c (patch)
treee5c4425cd99dbe4c07a6e1e93c15fe91bc854d59 /docker/Dockerfile
parentf023db2b474ab53056bdff3d01675fb6388265cd (diff)
downloadgitlab-ce-e9f974dc12cb7ab37f1fc089f0525bd491572a5c.tar.gz
Reduce the size of Docker image
1) Add `--no-install-recommends` option to `apt-get install`, this avoids lots of (~30MB) unnecessary packages. 2) Add `ca-certificates` package for `wget` fetching stuffs from Amazon S3. 3) There is no need to run `apt-get clean` for an image derived from official Ubuntu since they already cleaned (see also: http://goo.gl/B2SQRB) all the garbages produced by `apt-get`. Signed-off-by: kfei <kfei@kfei.net>
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index aea59916c7a..2cc01f24098 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -2,10 +2,10 @@ FROM ubuntu:14.04
# Install required packages
RUN apt-get update -q \
- && DEBIAN_FRONTEND=noninteractive apt-get install -qy \
+ && DEBIAN_FRONTEND=noninteractive apt-get install -qy --no-install-recommends \
+ ca-certificates \
openssh-server \
- wget \
- && apt-get clean
+ wget
# Download & Install GitLab
# If the Omnibus package version below is outdated please contribute a merge request to update it.