-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from CenturyLinkLabs/smaller_image
Smaller image using alpine linux
- Loading branch information
Showing
3 changed files
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters