1
0
mirror of https://github.com/rancher/os.git synced 2025-06-24 22:11:33 +00:00
os/docs/Dockerfile.build
Sven Dowideit 19ccdc0456 move URL to v1.1
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-08-17 06:31:59 +10:00

24 lines
630 B
Docker

FROM jekyll/jekyll:3.4 AS builder
WORKDIR /build
COPY Gemfile /build
COPY Gemfile.lock /build
COPY _config.yml /build
RUN jekyll build
COPY . /build
ENV OSVERSION v1.1
# IMPORTANT: this line moves the development docs to where they would be in rancher/rancher.gihub.io
RUN mv os os-orig \
&& mkdir -p os/$OSVERSION/en \
&& mv os-orig/* os/$OSVERSION/en/
# Set up the latest pages that get converted into redirects
ENV OS_DOCS_LATEST $OSVERSION
RUN mkdir -p os/latest/en \
&& cp -r os/$OSVERSION/en/* os/latest/en/ \
&& cp -r os/$OSVERSION/en/* os/latest/ \
&& cp -r os/$OSVERSION/en/* os/
RUN jekyll build