mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-04-15 19:05:41 +00:00
25 lines
520 B
Docker
25 lines
520 B
Docker
FROM rancher/docs:build as build
|
|
|
|
WORKDIR /run
|
|
|
|
COPY --from=rancherlabs/website-theme:latest /src/website-theme /run/node_modules/rancher-website-theme
|
|
COPY gulpfile.babel.js /run/
|
|
COPY .eslintrc.js /run/
|
|
COPY config.toml /run/
|
|
COPY netlify.toml /run/
|
|
COPY archetypes archetypes
|
|
COPY content content
|
|
COPY data data
|
|
COPY layouts layouts
|
|
COPY src src
|
|
|
|
ENV HUGO_ENV production
|
|
|
|
RUN gulp build
|
|
|
|
# Make sure something got built
|
|
RUN stat /run/public/index.html
|
|
|
|
FROM nginx
|
|
COPY --from=build /run/public /usr/share/nginx/html/
|