1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Added Dockerfile

This commit is contained in:
R.J. Osborne
2015-05-14 19:47:28 -04:00
parent d68e4bc54f
commit 932944ffc9
2 changed files with 27 additions and 5 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM ruby:2.2.2
RUN apt-get update && apt-get upgrade -y && apt-get install -y build-essential
RUN apt-get install -y nodejs
ENV APP_HOME /wrestlingApp
ENV PORT 3000
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
ADD Gemfile* $APP_HOME/
RUN bundle install
ADD . $APP_HOME
RUN rake db:migrate RAILS_ENV=test
RUN rake db:migrate RAILS_ENV=development
RUN rake db:seed
RUN rake test
#CMD rails s puma --binding 0.0.0.0
CMD bundle exec passenger start -p $PORT --max-pool-size 3
EXPOSE 3000

View File

@@ -1,5 +1,5 @@
source 'https://rubygems.org'
ruby '2.2.0'
ruby '2.2.2'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.0'
@@ -55,7 +55,3 @@ gem 'spring', group: :development
group :development do
gem 'puma'
end