We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26f2e7a commit 3764631Copy full SHA for 3764631
Dockerfile
@@ -1,10 +1,14 @@
1
FROM python:3.11-slim AS base
2
-
3
-COPY requirements.txt /
4
-RUN pip install --no-cache-dir -r /requirements.txt
5
6
-RUN mkdir /app
7
WORKDIR /app
8
-ADD . /app
+COPY requirements.txt .
+
+RUN apt-get update && \
+ apt-get install --no-install-recommends -y \
+ libcairo2 \
+ libcairo2-dev && \
9
+ apt-get clean && \
10
+ rm -rf /var/lib/apt/lists/* \
11
+ && pip install --no-cache-dir -r requirements.txt
12
-CMD python main.py
13
+COPY . .
14
+CMD ["python", "main.py"]
requirements.txt
@@ -4,4 +4,5 @@ fastapi==0.109.2
pydantic==1.10.12
uvicorn==0.27.1
tiktoken==0.5.2
-nbformat==5.9.2
+nbformat==5.9.2
+cairosvg==2.7.0
0 commit comments