-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile-3.7
More file actions
32 lines (28 loc) · 816 Bytes
/
Dockerfile-3.7
File metadata and controls
32 lines (28 loc) · 816 Bytes
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
# vim:set ft=dockerfile:
FROM alpine:3.18.5
LABEL maintainer="Andrius Kairiukstis <k@andrius.mobi>"
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES=1
ADD gemrc /root/.gemrc
RUN apk update \
&& apk add ruby \
ruby-bigdecimal \
ruby-io-console \
ruby-irb \
ca-certificates \
libressl \
less \
&& apk add --virtual .build-dependencies \
build-base \
ruby-dev \
libressl-dev \
&& gem install --no-rdoc --no-ri bundler:'~> 2.0' \
json \
&& bundle config build.nokogiri --use-system-libraries \
&& bundle config git.allow_insecure true \
\
&& gem cleanup \
&& apk del .build-dependencies \
&& rm -rf /usr/lib/ruby/gems/*/cache/* \
/var/cache/apk/* \
/tmp/* \
/var/tmp/*