Skip to content

Commit 438945c

Browse files
committed
Openshift specific Dockerfile
1 parent 5a37575 commit 438945c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ RUN mkdir /myapp
44
WORKDIR /myapp
55
ADD Gemfile /myapp/Gemfile
66
ADD Gemfile.lock /myapp/Gemfile.lock
7-
RUN bundle install --with=openshift
7+
RUN bundle install
88
ADD . /myapp
9-
RUN chgrp -R 0 /myapp \
10-
&& chmod -R g+rwX /myapp

openshift-configs/Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM ruby:2.6.5
2+
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
3+
RUN mkdir /myapp
4+
WORKDIR /myapp
5+
ADD Gemfile /myapp/Gemfile
6+
ADD Gemfile.lock /myapp/Gemfile.lock
7+
RUN bundle install --with=openshift
8+
ADD . /myapp
9+
RUN chgrp -R 0 /myapp \
10+
&& chmod -R g+rwX /myapp

0 commit comments

Comments
 (0)