Added db:migrate and DATABASE variable

This commit is contained in:
Pavel Pivovarov
2018-12-07 22:09:26 +11:00
parent 7bf96dd47f
commit 8b53e05b06
3 changed files with 5 additions and 10 deletions

View File

@@ -27,9 +27,8 @@ RUN gem install bundler && bundle install
VOLUME /app/db/database
RUN bin/rake assets:precompile
RUN bundle exec rake assets:precompile
EXPOSE 3000
ENTRYPOINT ["bundle", "exec"]
CMD ["rails", "server", "-b", "0.0.0.0"]
CMD cd /app && rake 'db:migrate' && bundle exec rails server -b 0.0.0.0