mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
Every package manager should clean up after themselves in order to keep docker layers neat and tiny: apt (Debian/Ubuntu package manager): - unneeded dependencies are cleared (autoremove) - caches are cleaned (clean) - package lists are deleted yum (CentOS package manager), zypper (OpenSuse package manager) - should clear caches after installing dependencies pip (Python package manager), apk (Alpine package manager) - should use no cache for installing dependencies
17 lines
539 B
Text
17 lines
539 B
Text
FROM ubuntu:14.04
|
|
|
|
RUN apt-get update -q \
|
|
&& apt-get install -y g++ gcc git make curl zlib1g-dev libssl-dev \
|
|
&& apt-get autoremove -yq \
|
|
&& apt-get clean -yqq \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV RUBY_VERSION 2.4.4
|
|
RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.4/ruby-${RUBY_VERSION}.tar.gz" \
|
|
| tar -xzC /tmp \
|
|
&& cd /tmp/ruby-2.4.4 \
|
|
&& ./configure --disable-install-rdoc --disable-install-doc --disable-install-capi\
|
|
&& make \
|
|
&& make install
|
|
|
|
RUN gem install bundler --no-document
|