-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 1014 Bytes
/
Dockerfile
File metadata and controls
28 lines (23 loc) · 1014 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
FROM python:3.13-slim
# System dependencies for the .NET runtime and cross-platform rendering:
# - libicu-dev: .NET globalization (ICU)
# - libgdiplus + libfontconfig1 + fontconfig: GDI+/font support used by
# several rendering paths (PDF, presentations, Visio, CAD, eBooks)
# - fonts-dejavu + fonts-liberation: real fonts so text renders; the
# Liberation set is metric-compatible with Arial/Times/Courier.
# Without fonts, font-dependent rendering throws (e.g. "trueTypeFont" null
# or a font type-initializer exception).
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends \
libicu-dev libgdiplus libfontconfig1 fontconfig \
fonts-dejavu fonts-liberation \
&& fc-cache -f \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install the package
COPY Examples/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy examples and sample files
COPY Examples/ ./Examples/
# Run all examples
CMD ["python", "Examples/run_all_examples.py"]