-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
40 lines (35 loc) · 1.11 KB
/
Copy pathContainerfile
File metadata and controls
40 lines (35 loc) · 1.11 KB
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
32
33
34
35
36
37
38
39
40
FROM docker.io/library/debian:trixie-20260824-slim@sha256:d7e12182ce18b85b93007c1dedf31f2d29e01ccf3182cc4017c709b6259bc132
LABEL org.opencontainers.image.title="Security Frameworks Pocket Showcase build toolchain" \
org.opencontainers.image.source="https://github.com/security-alliance/frameworks-books"
ENV DEBIAN_FRONTEND=noninteractive \
HOME=/tmp/book-home \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
TZ=UTC
RUN apt-get update \
&& apt-get upgrade -y --no-install-recommends \
&& apt-get install -y --no-install-recommends \
ca-certificates \
git \
latexmk \
lmodern \
make \
pandoc \
poppler-utils \
python3 \
python3-pypdf \
texlive-fonts-recommended \
texlive-latex-extra \
texlive-luatex \
zip \
&& rm -rf /var/lib/apt/lists/* \
&& command -v latexmk \
&& command -v lualatex \
&& command -v pandoc \
&& command -v pdftoppm \
&& python3 -c 'from pypdf import PdfReader'
COPY --chmod=0755 container/entrypoint.sh /usr/local/bin/book-build
WORKDIR /work
USER 65532:65532
ENTRYPOINT ["/usr/local/bin/book-build"]
CMD ["package"]