Dockerfile 433 B

12345678910111213141516171819202122
  1. FROM ruby:2.4.2
  2. WORKDIR /devdocs
  3. RUN apt-get update && \
  4. apt-get -y install git nodejs && \
  5. gem install bundler && \
  6. rm -rf /var/lib/apt/lists/*
  7. COPY Gemfile Gemfile.lock Rakefile /devdocs/
  8. RUN bundle install --system && \
  9. rm -rf ~/.gem /root/.bundle/cache /usr/local/bundle/cache
  10. COPY . /devdocs
  11. RUN thor docs:download --all && \
  12. thor assets:compile && \
  13. rm -rf /tmp
  14. EXPOSE 9292
  15. CMD rackup -o 0.0.0.0