diff options
Diffstat (limited to 'documentation/tools/Containerfile.dnf')
-rw-r--r-- | documentation/tools/Containerfile.dnf | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/documentation/tools/Containerfile.dnf b/documentation/tools/Containerfile.dnf new file mode 100644 index 0000000000..3dae744455 --- /dev/null +++ b/documentation/tools/Containerfile.dnf | |||
@@ -0,0 +1,25 @@ | |||
1 | ARG ARG_FROM=fedora:40 # default value to avoid warning | ||
2 | FROM $ARG_FROM | ||
3 | |||
4 | ARG DOCS=fedora_docs.sh | ||
5 | ARG DOCS_PDF=fedora_docs_pdf.sh | ||
6 | ARG PIP3=pip3_docs.sh | ||
7 | |||
8 | # relative to the location of the dockerfile | ||
9 | COPY --chmod=777 ${DOCS} /temp/host_packages_docs.sh | ||
10 | COPY --chmod=777 ${DOCS_PDF} /temp/host_packages_docs_pdf.sh | ||
11 | COPY --chmod=777 ${PIP3} /temp/pip3_docs.sh | ||
12 | |||
13 | RUN dnf update -y \ | ||
14 | && dnf install -y sudo \ | ||
15 | && yes | /temp/host_packages_docs.sh \ | ||
16 | && yes | /temp/host_packages_docs_pdf.sh \ | ||
17 | && yes | /temp/pip3_docs.sh \ | ||
18 | && dnf autoremove -y \ | ||
19 | && dnf clean all -y \ | ||
20 | && rm -rf /temp | ||
21 | |||
22 | RUN git config --global --add safe.directory /docs | ||
23 | |||
24 | ENTRYPOINT ["/usr/bin/env", "make", "-C", "documentation/"] | ||
25 | CMD ["publish"] | ||