-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
32 additions
and
252 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
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 |
---|---|---|
|
@@ -6,26 +6,29 @@ LABEL "org.opencontainers.image.authors"="Andrius Kairiukstis <[email protected]>" | |
LABEL "org.opencontainers.image.source"="https://github.com/andrius/alpine-ruby" | ||
LABEL "org.opencontainers.image.description"="Minimal dockerized ruby based on alpine-linux" | ||
|
||
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES=1 | ||
|
||
ADD gemrc /root/.gemrc | ||
|
||
RUN apk update && apk add \ | ||
RUN apk --no-cache add \ | ||
ca-certificates \ | ||
less \ | ||
libressl \ | ||
ruby \ | ||
ruby-etc \ | ||
ruby-bigdecimal \ | ||
ruby-etc \ | ||
ruby-io-console \ | ||
ruby-irb \ | ||
ca-certificates \ | ||
libressl \ | ||
less \ | ||
: \ | ||
&& apk add --virtual .build-dependencies build-base ruby-dev libressl-dev \ | ||
&& gem install bundler || apk add ruby-bundler \ | ||
ruby-irb | ||
|
||
# The following is needed for nokogiri | ||
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES=1 | ||
|
||
# It tries to install ruby bundler with failback to apk version and nokoiri | ||
RUN apk add --no-cache --virtual .build-dependencies build-base ruby-dev libressl-dev \ | ||
&& ( gem install --no-rdoc --no-ri bundler || gem install --no-rdoc --no-ri bundler '~> 2.0' || apk add ruby-bundler ) \ | ||
&& gem install --no-rdoc --no-ri json \ | ||
&& bundle config build.nokogiri --use-system-libraries \ | ||
&& bundle config git.allow_insecure true \ | ||
&& gem install json \ | ||
: \ | ||
&& gem cleanup \ | ||
&& apk del .build-dependencies \ | ||
&& rm -rf /usr/lib/ruby/gems/*/cache/* /var/cache/apk/* /tmp/* /var/tmp/* | ||
&& rm -rf /usr/lib/ruby/gems/*/cache/* \ | ||
&& apk del .build-dependencies | ||
|
||
COPY gemrc /root/.gemrc |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.