-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (24 loc) · 819 Bytes
/
Dockerfile
File metadata and controls
29 lines (24 loc) · 819 Bytes
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
# ---------------------------------------------------------------------------- #
FROM alpine:3.18 AS base-python-node
RUN apk update && \
apk add --no-cache \
make \
python3 \
py3-pip \
nodejs \
npm
# ---------------------------------------------------------------------------- #
FROM base-python-node AS scaffold
RUN pip install mkdocs mkdocs-techdocs-core plantuml mkdocs-plantuml && \
pip cache purge
RUN npm install -g @techdocs/cli && \
npm cache clean --force
# ---------------------------------------------------------------------------- #
FROM scaffold AS runner
VOLUME /docs
WORKDIR /docs-work
CMD cp -r /docs/* /docs-work && \
printenv > .env && \
make generate && \
make publish
# ---------------------------------------------------------------------------- #