Skip to content

Commit

Permalink
Merge pull request #3 from CenturyLinkLabs/smaller_image
Browse files Browse the repository at this point in the history
Smaller image using alpine linux
  • Loading branch information
cakkineni committed Mar 31, 2015
2 parents 08ef298 + b568a17 commit 2685020
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 14 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.1.5
FROM gliderlabs/alpine:3.1

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y libsqlite3-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
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ gem 'faraday', '0.8.9'
gem 'activeresource', '4.0.0'

# UI Gems
gem 'ctl_base_ui', '0.0.5'
gem 'ctl_base_ui', '0.0.6'
gem 'sass', '3.3.9'
gem 'therubyracer', '0.12.1', platforms: :ruby
gem 'haml', '4.0.5'
gem 'uglifier', '2.5.1'
gem 'kramdown', '1.4.0'
Expand Down
10 changes: 2 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ GEM
thor
crack (0.4.2)
safe_yaml (~> 1.0.0)
ctl_base_ui (0.0.5)
ctl_base_ui (0.0.6)
haml (~> 4.0)
jquery-rails (~> 3.1)
jquery-ui-rails (~> 4.2)
Expand Down Expand Up @@ -92,7 +92,6 @@ GEM
json (1.8.2)
kmts (2.0.1)
kramdown (1.4.0)
libv8 (3.16.14.7)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.4.3)
Expand Down Expand Up @@ -130,7 +129,6 @@ GEM
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.4.0)
ref (1.0.5)
rest-client (1.6.7)
mime-types (>= 1.16)
rspec-core (3.1.7)
Expand Down Expand Up @@ -179,9 +177,6 @@ GEM
railties (>= 3.2.5, < 5)
term-ansicolor (1.3.0)
tins (~> 1.0)
therubyracer (0.12.1)
libv8 (~> 3.16.14.0)
ref
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
Expand All @@ -207,7 +202,7 @@ DEPENDENCIES
activeresource (= 4.0.0)
capybara (= 2.4.4)
coveralls (= 0.7.0)
ctl_base_ui (= 0.0.5)
ctl_base_ui (= 0.0.6)
database_cleaner (= 1.3.0)
docker-api (= 1.13.0)
dotenv-rails (= 0.11.1)
Expand All @@ -228,7 +223,6 @@ DEPENDENCIES
sinatra (= 1.4.5)
sqlite3 (= 1.3.9)
teaspoon (= 0.8.0)
therubyracer (= 0.12.1)
uglifier (= 2.5.1)
webmock (= 1.20.4)
zeroclipboard-rails (= 0.1.0)

0 comments on commit 2685020

Please sign in to comment.