Skip to content

Commit

Permalink
Updating panamax ruby base image to be smaller.
Browse files Browse the repository at this point in the history
  • Loading branch information
cakkineni committed Mar 25, 2015
1 parent 1906251 commit b568a17
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
31 changes: 27 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
FROM centurylink/ruby-base:2.2
FROM gliderlabs/alpine:3.1

RUN apk --update \
add sqlite-dev ca-certificates
MAINTAINER CenturyLink Labs <[email protected]>


ENV RUBY_MAJOR 2.2
ENV RUBY_VERSION 2.2.0
RUN echo 'gem: --no-document' >> /.gemrc
ADD . /tmp
WORKDIR /tmp
RUN bundle install --without development


RUN apk-install curl \
libffi \
build-base \
openssl-dev \
gdbm \
ncurses \
readline \
yaml \
sqlite-dev \
ca-certificates \
tzdata \
make \
ruby-bundler \
ruby-dev \
&& gem install --no-document bundler \
&& bundle install --without development \
&& apk del build-base make ncurses

CMD [ "irb" ]

# These instructions are only executed when this image is used as the base for
# another image. They will be executed immediately after the FROM instruction
Expand Down
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ gem 'rails', '4.1.7'
gem 'puma', '2.8.2'
gem 'faraday', '0.8.9'
gem 'activeresource', '4.0.0'
gem 'tzinfo-data', '1.2015.2'

# UI Gems
gem 'ctl_base_ui', '0.0.6'
Expand Down
3 changes: 0 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ GEM
tins (1.3.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
tzinfo-data (1.2015.2)
tzinfo (>= 1.0.0)
uglifier (2.5.1)
execjs (>= 0.3.0)
json (>= 1.8.0)
Expand Down Expand Up @@ -225,7 +223,6 @@ DEPENDENCIES
sinatra (= 1.4.5)
sqlite3 (= 1.3.9)
teaspoon (= 0.8.0)
tzinfo-data (= 1.2015.2)
uglifier (= 2.5.1)
webmock (= 1.20.4)
zeroclipboard-rails (= 0.1.0)

0 comments on commit b568a17

Please sign in to comment.