forked from travis-ci/docs-travis-ci-com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 850 Bytes
/
Dockerfile
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
FROM ruby:2.6.3-slim
LABEL maintainer Travis CI GmbH <support+docs-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++ libpq-dev libcurl4-openssl-dev curl \
&& rm -rf /var/lib/apt/lists/* \
)
# ------
# Set the encoding to UTF-8
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV 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
RUN mkdir -p /app
WORKDIR /app
COPY Gemfile /app
COPY Gemfile.lock /app
RUN gem install bundler
RUN bundler install --verbose --retry=3
RUN gem install --user-install executable-hooks
COPY . /app
RUN bundle exec rake build
COPY . /app
CMD bundle exec puma -p 4000