forked from inferno-framework/davinci-pas-test-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 727 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 727 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
FROM ruby:3.3.6
ENV INSTALL_PATH=/opt/inferno/
ENV APP_ENV=production
RUN mkdir -p $INSTALL_PATH
WORKDIR $INSTALL_PATH
ADD *.gemspec $INSTALL_PATH
ADD Gemfile* $INSTALL_PATH
ADD lib/davinci_pas_test_kit/version.rb $INSTALL_PATH/lib/davinci_pas_test_kit/version.rb
RUN gem update --system
RUN gem install bundler
# The below RUN line is commented out for development purposes, because any change to the
# required gems will break the dockerfile build process.
# If you want to run in Deploy mode, just run `bundle install` locally to update
# Gemfile.lock, and uncomment the following line.
# RUN bundle config set --local deployment 'true'
RUN bundle install
ADD . $INSTALL_PATH
EXPOSE 4567
CMD ["bundle", "exec", "puma"]