-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 847 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 847 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
FROM ruby:3.2.2-slim
LABEL maintainer Travis CI GmbH <support+travis-listener-docker-images@travis-ci.com>
# packages required for bundle install
RUN ( \
apt-get update ; \
apt-get upgrade -y ; \
apt-get install -y --no-install-recommends git make gcc \
&& rm -rf /var/lib/apt/lists/* \
)
WORKDIR /app
RUN gem update --system 3.4.19 > /dev/null 2>&1
# Bundle config
RUN bundle config set --global no-cache 'true' && \
bundle config set --global frozen 'true' && \
bundle config set --global jobs `expr $(cat /proc/cpuinfo | grep -c 'cpu cores')` && \
bundle config set --global retry 3 && \
bundle config set --local deployment 'true' && \
bundle config set --local without 'development test'
COPY Gemfile Gemfile.lock ./
RUN bundle install
COPY . ./
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]