2022-05-06 12:53:33 +00:00
|
|
|
# rebuild in #36968
|
2022-01-14 08:54:23 +00:00
|
|
|
# docker build -t clickhouse/docs-builder .
|
2022-04-14 22:38:16 +00:00
|
|
|
# nodejs 17 prefers ipv6 and is broken in our environment
|
|
|
|
FROM node:16.14.2-alpine3.15
|
|
|
|
|
|
|
|
RUN apk add --no-cache git openssh bash
|
|
|
|
|
|
|
|
# TODO: clean before merge!
|
2022-04-19 21:35:39 +00:00
|
|
|
ARG DOCS_BRANCH=main
|
2022-04-14 22:38:16 +00:00
|
|
|
|
|
|
|
RUN git clone https://github.com/ClickHouse/clickhouse-docs.git \
|
|
|
|
--depth=1 --branch=${DOCS_BRANCH} /opt/clickhouse-docs
|
|
|
|
|
|
|
|
WORKDIR /opt/clickhouse-docs
|
|
|
|
|
|
|
|
RUN yarn config set registry https://registry.npmjs.org \
|
2022-04-15 14:27:09 +00:00
|
|
|
&& yarn install \
|
|
|
|
&& yarn cache clean
|
2022-04-14 22:38:16 +00:00
|
|
|
|
|
|
|
COPY run.sh /run.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/run.sh"]
|
|
|
|
|
|
|
|
CMD ["yarn", "build"]
|