chore: split the dependencies over two files: requirements.txt (used by HF Inference Endpoint) and requirements_extra.txt (only for local development) . Goal is to prevent the error 'Cannot uninstall 'blinker' seen in the HF Inference Endpoint logs
Browse files- Dockerfile +2 -2
- requirements.txt +0 -4
- requirements_extra.txt +4 -0
Dockerfile
CHANGED
@@ -8,8 +8,8 @@ RUN apt update && \
|
|
8 |
rm -rf /var/lib/apt/lists
|
9 |
|
10 |
|
11 |
-
COPY requirements.txt /
|
12 |
-
RUN pip3 install -r /requirements.txt
|
13 |
|
14 |
WORKDIR /workspace
|
15 |
|
|
|
8 |
rm -rf /var/lib/apt/lists
|
9 |
|
10 |
|
11 |
+
COPY requirements.txt requirements_extra.txt /
|
12 |
+
RUN pip3 install -r /requirements_extra.txt && pip3 install -r /requirements.txt
|
13 |
|
14 |
WORKDIR /workspace
|
15 |
|
requirements.txt
CHANGED
@@ -1,5 +1 @@
|
|
1 |
-
hf-endpoints-emulator==0.1.1
|
2 |
colbert-ai==0.2.20
|
3 |
-
torch==2.3.1
|
4 |
-
pytest==8.2.2
|
5 |
-
requests==2.32.3
|
|
|
|
|
1 |
colbert-ai==0.2.20
|
|
|
|
|
|
requirements_extra.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
hf-endpoints-emulator==0.1.1
|
2 |
+
torch==2.3.1
|
3 |
+
pytest==8.2.2
|
4 |
+
requests==2.32.3
|