Openshift specific Dockerfile

This commit is contained in:
Ken Toler
2020-06-08 19:27:09 -04:00
parent 5a375752b3
commit 438945cb57
2 changed files with 11 additions and 3 deletions
+1 -3
View File
@@ -4,7 +4,5 @@ RUN mkdir /myapp
WORKDIR /myapp
ADD Gemfile /myapp/Gemfile
ADD Gemfile.lock /myapp/Gemfile.lock
RUN bundle install --with=openshift
RUN bundle install
ADD . /myapp
RUN chgrp -R 0 /myapp \
&& chmod -R g+rwX /myapp
+10
View File
@@ -0,0 +1,10 @@
FROM ruby:2.6.5
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
RUN mkdir /myapp
WORKDIR /myapp
ADD Gemfile /myapp/Gemfile
ADD Gemfile.lock /myapp/Gemfile.lock
RUN bundle install --with=openshift
ADD . /myapp
RUN chgrp -R 0 /myapp \
&& chmod -R g+rwX /myapp