File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM ruby:3.4.4
2+
3+ RUN apt-get update -qq && apt-get install -y nodejs
4+
5+ COPY Gemfile /app/Gemfile
6+
7+ WORKDIR /app
8+
9+ RUN bundle install
10+
11+ # Add a script to be executed every time the container starts.
12+ COPY entrypoint.sh /usr/bin/
13+
14+ RUN chmod +x /usr/bin/entrypoint.sh
15+
16+ ENTRYPOINT ["entrypoint.sh" ]
17+ EXPOSE 9000
Original file line number Diff line number Diff line change 1+ source 'https://rubygems.org'
2+ gem 'rails' , '~> 8.0' , '>= 8.0.2'
3+ gem 'redis' , '~> 5.4'
4+ gem 'mysql2' , '~> 0.5.6'
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ # Remove a potentially pre-existing server.pid for Rails.
5+ rm -f /app/tmp/pids/server.pid
6+
7+ # Then exec the container's main process (what's set as CMD in the Dockerfile).
8+ exec " $@ "
You can’t perform that action at this time.
0 commit comments