-
Notifications
You must be signed in to change notification settings - Fork 40
/
Dockerfile
29 lines (21 loc) · 717 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
FROM ruby:3.2.2-slim
LABEL maintainer Travis CI GmbH <support+travis-tasks-docker-images@travis-ci.com>
# packages required for bundle install
RUN ( \
apt-get update ; \
apt-get install -y --no-install-recommends git make gcc curl zlib1g zlib1g-dev libjemalloc-dev\
&& rm -rf /var/lib/apt/lists/* \
)
RUN ( \
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; \
)
# 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 bundle install --deployment
COPY . /app