Dockerfile-alpine 521 B

1234567891011121314151617181920
  1. FROM ruby:3.3.0-alpine
  2. ENV LANG=C.UTF-8
  3. ENV ENABLE_SERVICE_WORKER=true
  4. WORKDIR /devdocs
  5. COPY . /devdocs
  6. RUN apk --update add nodejs build-base libstdc++ gzip git zlib-dev libcurl && \
  7. gem install bundler && \
  8. bundle install --system --without test && \
  9. thor docs:download --all && \
  10. thor assets:compile && \
  11. apk del gzip build-base git zlib-dev && \
  12. rm -rf /var/cache/apk/* /tmp ~/.gem /root/.bundle/cache \
  13. /usr/local/bundle/cache /usr/lib/node_modules
  14. EXPOSE 9292
  15. CMD rackup -o 0.0.0.0