This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: railsgoat
|
||||
spec:
|
||||
selector:
|
||||
app: railsgoat
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 3000
|
||||
Reference in New Issue
Block a user