mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-18 10:07:11 +01:00
25 lines
491 B
Docker
25 lines
491 B
Docker
FROM ruby:2.7.7
|
|
|
|
ENV LANG=C.UTF-8
|
|
ENV ENABLE_SERVICE_WORKER=true
|
|
|
|
WORKDIR /devdocs
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install git nodejs libcurl4 && \
|
|
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
|
|
|
|
EXPOSE 9292
|
|
CMD rackup -o 0.0.0.0
|