forked from andrius/alpine-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-3.1
39 lines (35 loc) · 917 Bytes
/
Dockerfile-3.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# vim:set ft=dockerfile:
FROM alpine:3.1
LABEL maintainer="Andrius Kairiukstis <[email protected]>"
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES=1
ADD gemrc /root/.gemrc
RUN apk update \
\
&& apk add ruby \
ruby-bigdecimal \
ruby-io-console \
ruby-irb \
build-base \
ruby-dev \
less \
&& apk add --update-cache --repository http://dl-4.alpinelinux.org/alpine/edge/main/ \
ca-certificates \
libressl \
libressl-dev \
\
&& gem install --no-rdoc --no-ri \
bundler \
json \
foreman \
\
&& bundle config build.nokogiri --use-system-libraries \
&& bundle config git.allow_insecure true \
\
&& gem cleanup \
&& apk del build-base \
ruby-dev \
libressl-dev \
&& rm -rf /usr/lib/ruby/gems/*/cache/* \
/var/cache/apk/* \
/tmp/* \
/var/tmp/*