# docker build -t registry.melvans.com:5000/rottenpotatoes . # docker run --rm -p 8081:80 registry.melvans.com:5000/rottenpotatoes # docker stop rottenpotatoes && docker rm rottenpotatoes # docker run -d --name rottenpotatoes --network=basicserver_default --restart=always -e VIRTUAL_HOST=rottenpotatoes.melvans.com registry.melvans.com:5000/rottenpotatoes FROM ruby:2.3.0 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 ADD . /myapp RUN bundle exec rake db:migrate RUN bundle exec rake db:seed EXPOSE 80 CMD ["rails", "server", "-b", "0.0.0.0", "-p", "80"]