-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile-bundle-base
More file actions
37 lines (32 loc) · 981 Bytes
/
Dockerfile-bundle-base
File metadata and controls
37 lines (32 loc) · 981 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
33
34
35
36
37
FROM alpine:3.22.2
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES=1
ENV BUNDLE_SILENCE_ROOT_WARNING=1
ADD docker/gemrc /root/.gemrc
RUN apk update \
&& apk add ruby \
ruby-bundler \
ruby-io-console \
ca-certificates \
libressl \
less \
git \
&& apk add --virtual build-dependencies \
build-base \
ruby-dev \
libressl-dev \
ruby-rdoc \
&& bundle config build.nokogiri --use-system-libraries \
&& bundle config git.allow_insecure true \
&& gem update --system 3.5.23 \
&& gem install json \
&& gem install bigdecimal \
&& gem install racc \
&& gem uninstall rubygems-update
ENV HOME=/pact
ENV DOCKER=true
WORKDIR $HOME
ADD pact-cli.gemspec Gemfile Gemfile.lock $HOME/
ADD lib/pact/cli/version.rb $HOME/lib/pact/cli/version.rb
RUN bundle config set without 'test development' \
bundle config set deployment 'true' \
&& bundle install