Spaces:
Running
Running
Fix Docker pip hash issue and dependency install
Browse files- Dockerfile +3 -5
- requirements.txt +2 -1
Dockerfile
CHANGED
|
@@ -1,17 +1,15 @@
|
|
| 1 |
-
# Use Python 3.10 base image
|
| 2 |
FROM python:3.10
|
| 3 |
|
| 4 |
-
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Copy all project files
|
| 8 |
COPY . .
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
-
# Expose Flask port
|
| 14 |
EXPOSE 8000
|
| 15 |
|
| 16 |
-
# Run the server
|
| 17 |
CMD ["python", "server.py"]
|
|
|
|
|
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 5 |
COPY . .
|
| 6 |
|
| 7 |
+
# Upgrade pip FIRST (critical)
|
| 8 |
+
RUN pip install --upgrade pip
|
| 9 |
+
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
|
|
|
| 13 |
EXPOSE 8000
|
| 14 |
|
|
|
|
| 15 |
CMD ["python", "server.py"]
|
requirements.txt
CHANGED
|
@@ -11,7 +11,8 @@ langchain-ibm==0.3.4
|
|
| 11 |
huggingface-hub==0.36.0
|
| 12 |
transformers==4.43.3
|
| 13 |
tokenizers==0.19.1
|
| 14 |
-
sentence-transformers
|
|
|
|
| 15 |
|
| 16 |
torch==2.0.1
|
| 17 |
chromadb
|
|
|
|
| 11 |
huggingface-hub==0.36.0
|
| 12 |
transformers==4.43.3
|
| 13 |
tokenizers==0.19.1
|
| 14 |
+
sentence-transformers
|
| 15 |
+
|
| 16 |
|
| 17 |
torch==2.0.1
|
| 18 |
chromadb
|