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

Update Ruby versions and fix installation issues with trying to remove procps and thus init

This commit is contained in:
Tianon Gravi 2014-09-22 10:09:23 -06:00
parent 96c73f0318
commit 50295f3a13
5 changed files with 16 additions and 10 deletions

View file

@ -1,12 +1,14 @@
FROM buildpack-deps:wheezy
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-p547
# 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 curl ruby procps \
&& apt-get install -y bison 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" \
@ -15,7 +17,7 @@ RUN apt-get update \
&& autoconf \
&& ./configure --disable-install-doc \
&& make \
&& apt-get purge -y --auto-remove bison ruby procps \
&& apt-get purge -y --auto-remove bison ruby \
&& make install \
&& rm -r /usr/src/ruby

View file

@ -1,12 +1,14 @@
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-p481
ENV RUBY_VERSION 2.0.0-p576
# 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 curl ruby procps \
&& apt-get install -y bison 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" \
@ -15,7 +17,7 @@ RUN apt-get update \
&& autoconf \
&& ./configure --disable-install-doc \
&& make -j"$(nproc)" \
&& apt-get purge -y --auto-remove bison ruby procps \
&& apt-get purge -y --auto-remove bison ruby \
&& make install \
&& rm -r /usr/src/ruby

View file

@ -1,4 +1,4 @@
FROM ruby:2.0.0-p481
FROM ruby:2.0.0-p576
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

View file

@ -1,12 +1,14 @@
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.2
ENV RUBY_VERSION 2.1.3
# 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 curl ruby procps \
&& apt-get install -y bison 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" \
@ -15,7 +17,7 @@ RUN apt-get update \
&& autoconf \
&& ./configure --disable-install-doc \
&& make -j"$(nproc)" \
&& apt-get purge -y --auto-remove bison ruby procps \
&& apt-get purge -y --auto-remove bison ruby \
&& make install \
&& rm -r /usr/src/ruby

View file

@ -1,4 +1,4 @@
FROM ruby:2.1.2
FROM ruby:2.1.3
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app