Files
libr-2/_Dockerfile
T
2015-09-06 23:55:20 +08:00

13 lines
254 B
Plaintext

FROM ruby:latest
RUN mkdir /myapp
WORKDIR /tmp
COPY Gemfile Gemfile
COPY Gemfile.lock Gemfile.lock
RUN bundle install
ADD . /myapp
WORKDIR /myapp
RUN RAILS_ENV=production bundle exec rake assets:precompile --trace
CMD ["rails","server","-b","0.0.0.0"]