-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (33 loc) · 1.28 KB
/
Copy pathDockerfile
File metadata and controls
37 lines (33 loc) · 1.28 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
FROM python:3.12-slim
# pandoc reads the source document; poppler-utils gives pdftoppm, which renders
# a PDF's pages for `compare`; Node runs the KaTeX check the design spec
# lists; xelatex plus these TeX packages are every package the PDF generator's
# src/template.latex loads — braket and cancel from texlive-science, xeCJK and
# ctex from texlive-lang-chinese, ulem from texlive-plain-generic, biblatex from
# texlive-bibtex-extra, bidi from texlive-lang-arabic, lmodern from its own
# package, and the rest from the recommended and extra sets. Noto Sans is what
# the template asks for when a document names no font.
RUN apt-get update && apt-get install --no-install-recommends -y \
pandoc \
poppler-utils \
nodejs \
texlive-xetex \
texlive-latex-recommended \
texlive-latex-extra \
texlive-science \
texlive-lang-chinese \
texlive-lang-arabic \
texlive-bibtex-extra \
texlive-plain-generic \
texlive-fonts-recommended \
lmodern \
fonts-noto-core \
fonts-noto-cjk \
git \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir poetry
WORKDIR /app
COPY pyproject.toml README.md ./
COPY in2lambda_agent ./in2lambda_agent
RUN poetry config virtualenvs.create false && poetry install --without dev
ENTRYPOINT ["in2lambda-agent"]