-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (30 loc) · 943 Bytes
/
Dockerfile
File metadata and controls
38 lines (30 loc) · 943 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
38
FROM ruby:3.2-slim
LABEL maintainer="Travis CI GmbH <[email protected]>"
# packages required for bundle install
RUN ( \
apt-get update ; \
apt-get install -y --no-install-recommends git make gcc g++ libpq-dev libcurl4-openssl-dev curl nodejs \
&& rm -rf /var/lib/apt/lists/* \
)
# ------
# Set the encoding to UTF-8
ENV LC_ALL=C.UTF-8 \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8
# -----
ENV WEBHOOK_PAYLOAD_GIST_ID=4e317d6e71be6d0278be46bb751b2f78
# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1
# Configure bundler for production
RUN mkdir -p /app
WORKDIR /app
COPY Gemfile /app
COPY Gemfile.lock /app
# Install bundler and gems
RUN gem install bundler:2.4.22 \
&& bundle install --verbose --retry=3
RUN gem install --user-install executable-hooks
COPY . /app
RUN bundle exec rake build
EXPOSE 4000
CMD ["bundle", "exec", "puma", "-p", "4000"]