Skip to content

Commit

Permalink
Add git-lfs to the image.
Browse files Browse the repository at this point in the history
We also remove packages that are no longer needed, and properly clean the apt-get cache according to https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/ . The end result, is that we end up with a smaller image, and bamboo supports git-lfs.

Fixes #4
  • Loading branch information
pwagland authored and Paul Wagland committed May 16, 2017
1 parent 8b656e7 commit 79b3db4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ ENV BAMBOO_VERSION 6.0.0
RUN set -x \
&& apt-get update --quiet \
&& apt-get install --quiet --yes --no-install-recommends xmlstarlet \
&& curl --silent https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install --quiet --yes --no-install-recommends git-lfs \
&& git lfs install \
&& apt-get install --quiet --yes --no-install-recommends -t jessie-backports libtcnative-1 \
&& dpkg --purge apt-transport-https \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p "${BAMBOO_HOME}/lib" \
&& chmod -R 700 "${BAMBOO_HOME}" \
&& chown -R daemon:daemon "${BAMBOO_HOME}" \
Expand Down

0 comments on commit 79b3db4

Please sign in to comment.