Skip to content

Commit

Permalink
Fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanalgar committed Feb 26, 2024
1 parent 26f2e7a commit 3764631
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
18 changes: 11 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
COPY . .
CMD ["python", "main.py"]
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 comments on commit 3764631

Please sign in to comment.