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