Merge branch 'add-apt-cleanup' into 'master'

Clean up apt lists to reduce the Docker image size

Signed-off-by: Tao Wang <twang2218@gmail.com>

See merge request !1129
This commit is contained in:
DJ Mountney 2016-11-24 19:36:57 +00:00
commit 7e796c5f9f
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ omnibus-gitlab repository.
8.15.0
- Update git to 2.8.4
- Clean up apt lists to reduce the Docker image size
8.14.0

View File

@ -10,6 +10,7 @@ echo "deb https://packages.gitlab.com/gitlab/${PACKAGECLOUD_REPO}/ubuntu/ ${DIST
wget -q -O - https://packages.gitlab.com/gpg.key | apt-key add -
apt-get update
apt-get install -yq --no-install-recommends ${RELEASE_PACKAGE}=${RELEASE_VERSION}
rm -rf /var/lib/apt/lists/*
# Create sshd daemon
mkdir -p /opt/gitlab/sv/sshd/supervise /opt/gitlab/sv/sshd/log/supervise