Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -44,7 +44,11 @@ RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
|
|
| 44 |
# Install PyTorch separately for compatibility
|
| 45 |
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
| 46 |
|
| 47 |
-
# Copy
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
COPY . /app
|
| 49 |
|
| 50 |
# Expose port
|
|
|
|
| 44 |
# Install PyTorch separately for compatibility
|
| 45 |
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
| 46 |
|
| 47 |
+
# 1. Copy entrypoint to the ROOT directory (Critical Fix)
|
| 48 |
+
COPY entrypoint.sh /entrypoint.sh
|
| 49 |
+
RUN chmod +x /entrypoint.sh
|
| 50 |
+
|
| 51 |
+
# 2. Copy the rest of the app to /app
|
| 52 |
COPY . /app
|
| 53 |
|
| 54 |
# Expose port
|