2024-04-24 00:08:37 +02:00
|
|
|
FROM ruby:3.3.1
|
2018-08-11 17:24:55 +02:00
|
|
|
ENV LANG=C.UTF-8
|
2019-07-10 19:48:36 +02:00
|
|
|
ENV ENABLE_SERVICE_WORKER=true
|
2018-08-11 17:24:55 +02:00
|
|
|
|
2015-12-01 21:46:16 +01:00
|
|
|
WORKDIR /devdocs
|
|
|
|
|
2017-05-09 00:23:02 +02:00
|
|
|
RUN apt-get update && \
|
2019-08-04 02:50:19 +02:00
|
|
|
apt-get -y install git nodejs libcurl4 && \
|
2017-05-09 00:23:02 +02:00
|
|
|
gem install bundler && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY Gemfile Gemfile.lock Rakefile /devdocs/
|
|
|
|
|
|
|
|
RUN bundle install --system && \
|
|
|
|
rm -rf ~/.gem /root/.bundle/cache /usr/local/bundle/cache
|
|
|
|
|
|
|
|
COPY . /devdocs
|
|
|
|
|
|
|
|
RUN thor docs:download --all && \
|
|
|
|
thor assets:compile && \
|
|
|
|
rm -rf /tmp
|
2015-12-01 21:46:16 +01:00
|
|
|
|
|
|
|
EXPOSE 9292
|
|
|
|
CMD rackup -o 0.0.0.0
|