Dockerfile 451 B

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