From 8e00f1738d523eea09cb034e40f3d7bbbbf31cb4 Mon Sep 17 00:00:00 2001 From: James Babb Date: Thu, 18 Apr 2019 12:19:58 -0500 Subject: [PATCH] Fix build --- Sources/SIS/Dockerfile | 27 ++++++++++++++++++++++++++- Sources/SIS/build.sh | 2 +- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/Sources/SIS/Dockerfile b/Sources/SIS/Dockerfile index 1af79d8..1315aa7 100644 --- a/Sources/SIS/Dockerfile +++ b/Sources/SIS/Dockerfile @@ -1 +1,26 @@ -#to-do +FROM ruby:2.3.3 + +MAINTAINER "TIER API & EntReg Working Group " + +RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs netcat + +RUN mkdir /myapp + +WORKDIR /myapp + +ADD Gemfile /myapp/Gemfile +ADD Gemfile.lock /myapp/Gemfile.lock + +RUN bundle install + +ADD . /myapp + +# Indicate the container needs bootstrapping +RUN touch /FIRSTRUN + +# Copy in the container start and bootstrap script +COPY run-rails.sh /usr/local/bin + +EXPOSE 3000 + +CMD ["/bin/bash", "/usr/local/bin/run-rails.sh"] diff --git a/Sources/SIS/build.sh b/Sources/SIS/build.sh index 788a8a2..25b6233 100644 --- a/Sources/SIS/build.sh +++ b/Sources/SIS/build.sh @@ -1,4 +1,4 @@ #!/bin/bash # build the sis web app -docker build sis-app -t tier-sis-web +docker build . -t tier-sis-web