devdocs Docker & Self-Hosted Deployment

GitHub

API Documentation Browser

1. Pull Image (DOCKERHUB) docker pull freeCodeCamp/devdocs:latest
2. Docker Run (1-Click Launch) docker run -d --name devdocs -p 9292:9292 --restart always freecodecamp/devdocs:latest
3. Podman Run podman run -d --name devdocs -p 9292:9292 --restart always freecodecamp/devdocs:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/freecodecamp/devdocs:latest
5. ORAS Pull (OCI Artifact) oras pull freecodecamp/devdocs:latest
Dockerfile
FROM ruby:4.0.7
ENV LANG=C.UTF-8
ENV ENABLE_SERVICE_WORKER=true

WORKDIR /devdocs

RUN apt-get update && \
    apt-get -y install git nodejs libcurl4 libarchive-tools webp && \
    gem install bundler && \
    rm -rf /var/lib/apt/lists/*

COPY Gemfile Gemfile.lock Rakefile /devdocs/

RUN bundle config set path.system true && \
    bundle install && \
    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