Spaces:
Sleeping
Sleeping
- Joined requirements.txt form app and fe into one file and added pytest to the list of packages
Browse files- Dockerfile +2 -3
- fe/requirements.txt +0 -2
- app/requirements.txt → requirements.txt +3 -0
Dockerfile
CHANGED
@@ -4,9 +4,8 @@ FROM python:3.11-slim
|
|
4 |
WORKDIR /usr/src/app
|
5 |
|
6 |
# Copy and install dependencies
|
7 |
-
COPY
|
8 |
-
|
9 |
-
RUN pip install --no-cache-dir -r backend-requirements.txt -r frontend-requirements.txt
|
10 |
|
11 |
# Set cache directories to /tmp
|
12 |
ENV HF_HOME=/tmp/huggingface
|
|
|
4 |
WORKDIR /usr/src/app
|
5 |
|
6 |
# Copy and install dependencies
|
7 |
+
COPY requirements.txt ./requirements.txt
|
8 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
9 |
|
10 |
# Set cache directories to /tmp
|
11 |
ENV HF_HOME=/tmp/huggingface
|
fe/requirements.txt
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
gradio
|
2 |
-
requests
|
|
|
|
|
|
app/requirements.txt → requirements.txt
RENAMED
@@ -2,3 +2,6 @@ fastapi
|
|
2 |
uvicorn
|
3 |
datasets
|
4 |
sentence-transformers
|
|
|
|
|
|
|
|
2 |
uvicorn
|
3 |
datasets
|
4 |
sentence-transformers
|
5 |
+
gradio
|
6 |
+
requests
|
7 |
+
pytest
|