Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
|
@@ -27,10 +27,8 @@ COPY requirements.txt .
|
|
| 27 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 28 |
pip install --no-cache-dir -r requirements.txt
|
| 29 |
|
| 30 |
-
# Copy application
|
| 31 |
-
COPY
|
| 32 |
-
COPY test_all_models.py .
|
| 33 |
-
COPY quick_test.py .
|
| 34 |
|
| 35 |
# Create a simple health check script
|
| 36 |
RUN echo '#!/bin/bash\ncurl -f http://localhost:7860/health || exit 1' > /healthcheck.sh && \
|
|
@@ -45,4 +43,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
| 45 |
|
| 46 |
# Command to run the multi-model application
|
| 47 |
# Hugging Face Spaces expects the app to run on port 7860
|
| 48 |
-
CMD ["python", "app.py"]
|
|
|
|
| 27 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 28 |
pip install --no-cache-dir -r requirements.txt
|
| 29 |
|
| 30 |
+
# Copy only the main application file
|
| 31 |
+
COPY app.py .
|
|
|
|
|
|
|
| 32 |
|
| 33 |
# Create a simple health check script
|
| 34 |
RUN echo '#!/bin/bash\ncurl -f http://localhost:7860/health || exit 1' > /healthcheck.sh && \
|
|
|
|
| 43 |
|
| 44 |
# Command to run the multi-model application
|
| 45 |
# Hugging Face Spaces expects the app to run on port 7860
|
| 46 |
+
CMD ["python", "app.py"]
|