diff --git a/Dockerfile b/Dockerfile index 51d2c44..9be2a43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ FROM python:3.11-slim AS base - -COPY requirements.txt / -RUN pip install --no-cache-dir -r /requirements.txt - -RUN mkdir /app WORKDIR /app -ADD . /app +COPY requirements.txt . + +RUN apt-get update && \ + apt-get install --no-install-recommends -y \ + libcairo2 \ + libcairo2-dev && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* \ + && pip install --no-cache-dir -r requirements.txt -CMD python main.py \ No newline at end of file +COPY . . +CMD ["python", "main.py"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 623cfb3..634f7cd 100644 --- a/requirements.txt +++ b/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 \ No newline at end of file +nbformat==5.9.2 +cairosvg==2.7.0 \ No newline at end of file