Skip to content

Commit 3764631

Browse files
committed
Fix Dockerfile
1 parent 26f2e7a commit 3764631

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

Dockerfile

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
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
72
WORKDIR /app
8-
ADD . /app
3+
COPY requirements.txt .
4+
5+
RUN apt-get update && \
6+
apt-get install --no-install-recommends -y \
7+
libcairo2 \
8+
libcairo2-dev && \
9+
apt-get clean && \
10+
rm -rf /var/lib/apt/lists/* \
11+
&& pip install --no-cache-dir -r requirements.txt
912

10-
CMD python main.py
13+
COPY . .
14+
CMD ["python", "main.py"]

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ fastapi==0.109.2
44
pydantic==1.10.12
55
uvicorn==0.27.1
66
tiktoken==0.5.2
7-
nbformat==5.9.2
7+
nbformat==5.9.2
8+
cairosvg==2.7.0

0 commit comments

Comments
 (0)