-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.doctools
31 lines (25 loc) · 1.24 KB
/
Dockerfile.doctools
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM sphinxdoc/sphinx:8.0.2
WORKDIR /docs
# install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl gnupg chromium && \
# nodejs
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
apt-get update && apt-get install -y nodejs npm && \
# terraform
curl -Lo /tmp/terraform-docs.tar.gz "https://github.com/terraform-docs/terraform-docs/releases/download/v0.16.0/terraform-docs-v0.16.0-$(uname)-amd64.tar.gz" && \
tar -xzf /tmp/terraform-docs.tar.gz -C /tmp && \
chmod +x /tmp/terraform-docs && \
mv /tmp/terraform-docs /usr/local/bin/terraform-docs && \
rm /tmp/terraform-docs.tar.gz && \
# cleanup
apt-get remove -y curl gnupg && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN npm -v
COPY requirements.doctools.txt .
RUN python3 -m pip install --no-cache-dir -r requirements.doctools.txt && \
rm requirements.doctools.txt
RUN node --version
RUN npm install -g @mermaid-js/[email protected]
COPY puppeteer-config.json /