-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 795 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 795 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
FROM ruby:3.2.9-slim
LABEL maintainer Travis CI GmbH <support+monitor-docker-images@travis-ci.com>
# packages required for bundle install
RUN ( \
apt-get update ; \
apt-get install -y --no-install-recommends git make gcc g++ \
&& rm -rf /var/lib/apt/lists/* \
)
# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1
RUN mkdir -p /app
WORKDIR /app
COPY Gemfile /app
COPY Gemfile.lock /app
ARG bundle_gems__contribsys__com
RUN bundle config https://gems.contribsys.com/ $bundle_gems__contribsys__com \
&& bundler install --verbose --retry=3 --deployment \
&& bundle config --delete https://gems.contribsys.com/
COPY . /app
CMD ["/bin/bash", "-c", "bundle exec thin -R config.ru -e ${RACK_ENV} -p ${PORT:-4500} start"]