-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 844 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (17 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.13-slim
# System dependencies for the .NET runtime: libicu-dev (globalization)
# and libgdiplus + libfontconfig1 (System.Drawing / GDI+, used by the
# image and rasterized rendering paths on Linux)
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends libicu-dev libgdiplus libfontconfig1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install dependencies. NOTE: the annotation wheel is temporarily pulled from the
# GroupDocs releases (S3) site instead of PyPI (the 26.6.0 PyPI release is broken) —
# see Examples/requirements.txt. This image is Linux/x86_64, which matches the wheel.
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"]