1
0
Fork 0
mirror of https://github.com/docker-library/ruby.git synced 2022-11-09 11:41:34 -05:00

Fix gdbm not being available, remove deps that are now in buildpack-deps

This commit is contained in:
Joe Ferguson 2015-01-21 13:23:43 -08:00
parent 8596abba28
commit fce6523674
4 changed files with 8 additions and 16 deletions

View file

@ -1,14 +1,12 @@
FROM buildpack-deps:jessie
RUN apt-get update && apt-get install -y curl procps && rm -rf /var/lib/apt/lists/*
ENV RUBY_MAJOR 1.9
ENV RUBY_VERSION 1.9.3-p551
# some of ruby's build scripts are written in ruby
# we purge this later to make sure our final image uses what we just built
RUN apt-get update \
&& apt-get install -y bison ruby \
&& apt-get install -y bison libgdbm-dev ruby \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/ruby \
&& curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \
@ -17,8 +15,8 @@ RUN apt-get update \
&& autoconf \
&& ./configure --disable-install-doc \
&& make \
&& apt-get purge -y --auto-remove bison ruby \
&& make install \
&& apt-get purge -y --auto-remove bison libgdbm-dev ruby \
&& rm -r /usr/src/ruby
# skip installing gem documentation

View file

@ -1,14 +1,12 @@
FROM buildpack-deps:jessie
RUN apt-get update && apt-get install -y curl procps && rm -rf /var/lib/apt/lists/*
ENV RUBY_MAJOR 2.0
ENV RUBY_VERSION 2.0.0-p598
# some of ruby's build scripts are written in ruby
# we purge this later to make sure our final image uses what we just built
RUN apt-get update \
&& apt-get install -y bison ruby \
&& apt-get install -y bison libgdbm-dev ruby \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/ruby \
&& curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \
@ -17,8 +15,8 @@ RUN apt-get update \
&& autoconf \
&& ./configure --disable-install-doc \
&& make -j"$(nproc)" \
&& apt-get purge -y --auto-remove bison ruby \
&& make install \
&& apt-get purge -y --auto-remove bison libgdbm-dev ruby \
&& rm -r /usr/src/ruby
# skip installing gem documentation

View file

@ -1,14 +1,12 @@
FROM buildpack-deps:jessie
RUN apt-get update && apt-get install -y curl procps && rm -rf /var/lib/apt/lists/*
ENV RUBY_MAJOR 2.1
ENV RUBY_VERSION 2.1.5
# some of ruby's build scripts are written in ruby
# we purge this later to make sure our final image uses what we just built
RUN apt-get update \
&& apt-get install -y bison ruby \
&& apt-get install -y bison libgdbm-dev ruby \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/ruby \
&& curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \
@ -17,8 +15,8 @@ RUN apt-get update \
&& autoconf \
&& ./configure --disable-install-doc \
&& make -j"$(nproc)" \
&& apt-get purge -y --auto-remove bison ruby \
&& make install \
&& apt-get purge -y --auto-remove bison libgdbm-dev ruby \
&& rm -r /usr/src/ruby
# skip installing gem documentation

View file

@ -1,14 +1,12 @@
FROM buildpack-deps:jessie
RUN apt-get update && apt-get install -y curl procps && rm -rf /var/lib/apt/lists/*
ENV RUBY_MAJOR 2.2
ENV RUBY_VERSION 2.2.0
# some of ruby's build scripts are written in ruby
# we purge this later to make sure our final image uses what we just built
RUN apt-get update \
&& apt-get install -y bison ruby \
&& apt-get install -y bison libgdbm-dev ruby \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/ruby \
&& curl -SL "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.bz2" \
@ -17,8 +15,8 @@ RUN apt-get update \
&& autoconf \
&& ./configure --disable-install-doc \
&& make -j"$(nproc)" \
&& apt-get purge -y --auto-remove bison ruby \
&& make install \
&& apt-get purge -y --auto-remove bison libgdbm-dev ruby \
&& rm -r /usr/src/ruby
# skip installing gem documentation