mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
490 B
25 lines
490 B
FROM ruby:3.2.2
|
|
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
|