-
Notifications
You must be signed in to change notification settings - Fork 48
/
Dockerfile.tcie
38 lines (32 loc) · 1.31 KB
/
Dockerfile.tcie
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
FROM ruby:3.2.2-slim
LABEL maintainer Travis CI GmbH <[email protected]>
RUN ( \
bundle config set no-cache 'true'; \
bundle config --global frozen 1; \
bundle config set deployment 'true'; \
mkdir -p /app; \
)
WORKDIR /app
COPY Gemfile /app
COPY Gemfile.lock /app
ARG bundle_gems__contribsys__com
RUN ( \
apt-get update ; \
apt-get upgrade -y ; \
apt-get install -y git make gcc g++ libpq-dev curl \
&& rm -rf /var/lib/apt/lists/*; \
curl -sLO http://ppa.launchpad.net/rmescandon/yq/ubuntu/pool/main/y/yq/yq_3.1-2_amd64.deb && \
dpkg -i yq_3.1-2_amd64.deb && \
rm -f yq_3.1-2_amd64.deb; \
gem install bundler -v '2.3.14'; \
bundle config https://gems.contribsys.com/ $bundle_gems__contribsys__com \
&& bundle config set without 'development test' \
&& bundle install --deployment \
&& bundle config --delete https://gems.contribsys.com/; \
apt-get remove -y gcc g++ make git perl && apt-get -y autoremove; \
bundle clean && rm -rf /app/vendor/bundle/ruby/2.5.0/cache/*; \
rm -rf /usr/local/bundle/cache/\*.gem; \
find /usr/local/bundle/gems/ \( -name '*.c' -o -name '*.h' -o -name '*.cpp' -o -name '*.o' \) -delete; \
find /app/vendor/ \( -name '*.c' -o -name '*.h' -o -name '*.cpp' -o -name '*.o' \) -delete; \
)
COPY . /app