1
0

Dockerfile 490 B

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