mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Added Dockerfile
This commit is contained in:
26
Dockerfile
Normal file
26
Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user