generated from inferno-framework/inferno-template
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
23 lines (18 loc) · 725 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ruby:3.1.2
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/onc_certification_g10_test_kit/version.rb $INSTALL_PATH/lib/onc_certification_g10_test_kit/version.rb
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"]