forked from netdata/netdata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.docs
29 lines (20 loc) · 916 Bytes
/
Dockerfile.docs
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
ARG PYVER=3.8
FROM python:${PYVER}-alpine
WORKDIR /netdata
# These scripts use Bash(ism) so install Bash
# TODO: Maybe rewrite the link checker in something more sane
RUN apk add --no-cache -U bash
# The scripts also clone the netdata/netdata repo using git
# TODO: Maybe also optionally support bind-mounted sources
RUN apk add --no-cache -U git
# The scripts also use GNU find options
RUN apk add --no-cache -U findutils
# (20200415) Some Python dependnecy now requires gcc as part of its build step.
RUN apk add --no-cache -U build-base
# Copy and Install build dependencies first to cache them so we don't have to
# do this every single time we want to rebuild the docs. The cache is busted
# when/if the SHA of the requirements.txt is changed.
COPY docs/generator /netdata/docs/generator
RUN pip install -r /netdata/docs/generator/requirements.txt
COPY . .
CMD ["/netdata/docs/generator/buildhtml.sh"]