Commit
·
b5eadfd
1
Parent(s):
049aec2
updated docker
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
FROM nvidia/cuda:12.3.2-cudnn9-devel-ubuntu22.04
|
2 |
|
3 |
-
|
|
|
|
|
4 |
python3 python3-pip python3-venv build-essential curl git libvips-dev \
|
5 |
-
weasyprint \
|
6 |
&& rm -rf /var/lib/apt/lists/*
|
7 |
|
8 |
RUN pip install --no-cache-dir --upgrade pip \
|
@@ -16,11 +18,9 @@ WORKDIR /app
|
|
16 |
|
17 |
COPY pyproject.toml ./
|
18 |
|
19 |
-
RUN
|
20 |
-
weasyprint \
|
21 |
-
&& poetry install --no-interaction --no-ansi \
|
22 |
&& pip install --no-build-isolation flash-attn \
|
23 |
-
&& pip install "rerankers[all]"
|
24 |
|
25 |
RUN useradd -m -u 1000 user
|
26 |
USER user
|
|
|
1 |
FROM nvidia/cuda:12.3.2-cudnn9-devel-ubuntu22.04
|
2 |
|
3 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
+
|
5 |
+
RUN apt-get update && apt-get install -y \
|
6 |
python3 python3-pip python3-venv build-essential curl git libvips-dev \
|
7 |
+
weasyprint tzdata \
|
8 |
&& rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
RUN pip install --no-cache-dir --upgrade pip \
|
|
|
18 |
|
19 |
COPY pyproject.toml ./
|
20 |
|
21 |
+
RUN poetry install --no-interaction --no-ansi \
|
|
|
|
|
22 |
&& pip install --no-build-isolation flash-attn \
|
23 |
+
&& pip install "rerankers[all]" \
|
24 |
|
25 |
RUN useradd -m -u 1000 user
|
26 |
USER user
|