2024-07-09 23:58:03 +02:00
|
|
|
FROM ruby:3.3.4-alpine
|
2017-05-09 00:23:02 +02:00
|
|
|
|
2018-08-19 23:45:58 +02:00
|
|
|
ENV LANG=C.UTF-8
|
2019-07-10 19:48:36 +02:00
|
|
|
ENV ENABLE_SERVICE_WORKER=true
|
2018-08-19 23:45:58 +02:00
|
|
|
|
2017-05-09 00:23:02 +02:00
|
|
|
WORKDIR /devdocs
|
|
|
|
|
|
|
|
COPY . /devdocs
|
|
|
|
|
2019-08-04 02:50:19 +02:00
|
|
|
RUN apk --update add nodejs build-base libstdc++ gzip git zlib-dev libcurl && \
|
2017-05-09 00:23:02 +02:00
|
|
|
gem install bundler && \
|
|
|
|
bundle install --system --without test && \
|
|
|
|
thor docs:download --all && \
|
|
|
|
thor assets:compile && \
|
|
|
|
apk del gzip build-base git zlib-dev && \
|
|
|
|
rm -rf /var/cache/apk/* /tmp ~/.gem /root/.bundle/cache \
|
|
|
|
/usr/local/bundle/cache /usr/lib/node_modules
|
|
|
|
|
|
|
|
EXPOSE 9292
|
|
|
|
CMD rackup -o 0.0.0.0
|