2024-01-30 22:48:35 +00:00
|
|
|
FROM ruby:3.0
|
2024-01-30 19:20:21 +00:00
|
|
|
|
|
|
|
# throw errors if Gemfile has been modified since Gemfile.lock
|
|
|
|
RUN bundle config --global frozen 1
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
COPY Gemfile Gemfile.lock ./
|
|
|
|
RUN bundle install
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
CMD bundle exec ruby main.rb
|