File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM ruby:3.1-alpine
2+
3+ RUN apk add --update --no-cache \
4+ build-base \
5+ curl-dev \
6+ git \
7+ nodejs \
8+ shared-mime-info \
9+ sqlite-dev \
10+ tzdata \
11+ yaml-dev \
12+ yarn \
13+ zlib-dev
14+
15+ RUN mkdir /app /gem
16+ WORKDIR /app
17+
18+ RUN gem update --system 3.5.7
19+ RUN bundle config force_ruby_platform true
20+ RUN gem install rails -v 7.2.1.1
21+ RUN rails new .
22+
23+ COPY . /gem
24+ RUN bundle add meta_request --path /gem
25+ RUN bundle install
26+
27+ COPY res/routes.rb /app/config/
28+ COPY res/dummy_controller.rb /app/app/controllers/
29+ COPY res/dummy /app/app/views/dummy
30+ COPY res/meta_request_test.rb /app/test/integration/
31+
32+ RUN bundle exec rails db:migrate
33+
34+ ENV PARALLEL_WORKERS 1
35+
36+ CMD ["bin/rake"]
Original file line number Diff line number Diff line change @@ -25,3 +25,7 @@ services:
2525 build :
2626 context : .
2727 dockerfile : Dockerfile-rails-7.1
28+ test-rails-7.2 :
29+ build :
30+ context : .
31+ dockerfile : Dockerfile-rails-7.2
You can’t perform that action at this time.
0 commit comments