-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile.ruby25
More file actions
34 lines (24 loc) · 883 Bytes
/
Dockerfile.ruby25
File metadata and controls
34 lines (24 loc) · 883 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
#
# BUILD IMAGE
#
FROM ruby:2.5-alpine
WORKDIR /app
RUN apk add --update --no-cache \
alpine-sdk \
tzdata
RUN gem install bundler
# Your RubyGems version (3.0.3)) has a bug that prevents `required_ruby_version` from working for
# Bundler. Any scripts that use `gem install bundler` will break as soon as Bundler drops support
# for your Ruby version. Please upgrade RubyGems to avoid future breakage and silence this warning
# by running `gem update --system 3.2.3`
RUN gem update --system 3.2.3
COPY . .
RUN bundle config set specific_platform true
# Ensure the use of a Gemfile working with Ruby 2.5
RUN sed -e 's/"..\/"/".\/"/' gemfiles/rails_52.gemfile > Gemfile
# Install the basic dependencies
RUN bundle install
# Install dependencies for all supported Rails versions
RUN bundle exec appraisal install
# Run the tests
CMD ['./entrypoints/appraisal_test.sh']