forked from onc-healthit/onc-certification-g10-test-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.terminology
30 lines (22 loc) · 866 Bytes
/
Dockerfile.terminology
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
29
30
FROM ruby:2.7.2
ENV INSTALL_PATH=/opt/inferno/
ENV APP_ENV=production
RUN mkdir -p $INSTALL_PATH
WORKDIR $INSTALL_PATH
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get install -y sqlite3
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
### Install Inferno
ADD . $INSTALL_PATH
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
CMD ["./bin/run_terminology.sh"]