Dockerfile.build 574 B

12345678910111213141516171819202122
  1. FROM jekyll/jekyll:3.4 AS builder
  2. WORKDIR /build
  3. COPY Gemfile /build
  4. COPY Gemfile.lock /build
  5. COPY _config.yml /build
  6. RUN jekyll build
  7. COPY . /build
  8. # IMPORTANT: this line moves the development docs to where they would be in rancher/rancher.gihub.io
  9. RUN mv os os-orig \
  10. && mkdir -p os/v1.0/en \
  11. && mv os-orig/* os/v1.0/en/
  12. # Set up the latest pages that get converted into redirects
  13. ENV OS_DOCS_LATEST v1.0
  14. RUN mkdir -p os/latest/en \
  15. && cp -r os/v1.0/en/* os/latest/en/ \
  16. && cp -r os/v1.0/en/* os/latest/ \
  17. && cp -r os/v1.0/en/* os/
  18. RUN jekyll build