1FROM ruby:2.6.5
2
3RUN apt-get update && \
4    apt-get install -y nodejs && \
5    git clone git://github.com/doorkeeper-gem/doorkeeper-provider-app.git /app && \
6    cd /app && \
7    gem install bundler:2.1.4 && \
8    bundle install && \
9    sed -i s'!https://doorkeeper-sinatra.herokuapp.com/callback!http://localhost/!' db/seeds.rb && \
10    bundle exec rake db:setup | tail -n4 > public/secrets.txt
11
12EXPOSE 3000
13
14WORKDIR /app
15ENTRYPOINT ["rails", "server", "--binding=0.0.0.0"]
16
17
18
19
20