Skip to content

Commit e9241e3

Browse files
committed
Merge pull request #7 from infosiftr/cleanup
Clean up apt cache after installing
2 parents 21a9f10 + 950a673 commit e9241e3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

1.9/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ENV RUBY_VERSION 1.9.3-p547
77
# we purge this later to make sure our final image uses what we just built
88
RUN apt-get update \
99
&& apt-get install -y bison curl ruby procps \
10+
&& rm -rf /var/lib/apt/lists/* \
1011
&& mkdir -p /usr/src/ruby \
1112
&& curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \
1213
| tar -xjC /usr/src/ruby --strip-components=1 \

2.1/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ENV RUBY_VERSION 2.1.2
77
# we purge this later to make sure our final image uses what we just built
88
RUN apt-get update \
99
&& apt-get install -y bison curl ruby procps \
10+
&& rm -rf /var/lib/apt/lists/* \
1011
&& mkdir -p /usr/src/ruby \
1112
&& curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \
1213
| tar -xjC /usr/src/ruby --strip-components=1 \

0 commit comments

Comments
 (0)