Samfy001 commited on
Commit
3d65864
·
verified ·
1 Parent(s): b0fe79f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 files
31
- COPY replicate_server.py app.py
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"]