forked from cyberark/conjur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.test
32 lines (22 loc) · 848 Bytes
/
Dockerfile.test
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
ARG VERSION=latest
FROM cyberark/ubuntu-ruby-builder:latest as builder
ENV CONJUR_HOME=/opt/conjur-server \
GEM_HOME=/usr/local/bundle
WORKDIR ${CONJUR_HOME}
COPY Gemfile Gemfile.lock ./
COPY ./gems/ ./gems/
RUN bundle config unset --local without && \
bundle config unset --local path && \
bundle config set --local deployment false && \
bundle config --local jobs "$(nproc --all)" && \
bundle install
# removing CA bundle of httpclient gem
RUN find / -name httpclient -type d -exec find {} -name "*.pem" -type f -delete \;
FROM conjur:${VERSION}
ENV GEM_HOME=/usr/local/bundle
ENV PATH="${GEM_HOME}/bin:${PATH}"
RUN bundle config unset --local without && \
bundle config unset --local path && \
bundle config set --local deployment false && \
gem install rake
COPY --from=builder ${GEM_HOME} ${GEM_HOME}