generated from inferno-framework/inferno-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
28 lines (21 loc) · 973 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
24
25
26
27
28
FROM ruby:3.1.2
ENV INSTALL_PATH=/opt/inferno/
ENV APP_ENV=production
RUN mkdir -p $INSTALL_PATH
WORKDIR $INSTALL_PATH
# Included for convenience for MITRE employees
# Should not affect usage outside the MITRE network but should be removed when published
RUN curl -ksSL https://gitlab.mitre.org/mitre-scripts/mitre-pki/raw/master/os_scripts/install_certs.sh | MODE=ubuntu sh
ADD *.gemspec $INSTALL_PATH
ADD Gemfile* $INSTALL_PATH
ADD lib/service_base_url_test_kit/version.rb $INSTALL_PATH/lib/service_base_url_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"]