Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Update Dockerfile
Browse files- Dockerfile +7 -1
    	
        Dockerfile
    CHANGED
    
    | @@ -14,6 +14,12 @@ RUN apt-get update && apt-get install -y \ | |
| 14 | 
             
            # Set Hugging Face cache directory to a writable location
         | 
| 15 | 
             
            ENV HF_HOME /app/.cache
         | 
| 16 |  | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 17 | 
             
            # Copy all project files into the Docker image
         | 
| 18 | 
             
            COPY . /app
         | 
| 19 |  | 
| @@ -24,4 +30,4 @@ RUN pip install --no-cache-dir -r requirements.txt | |
| 24 | 
             
            EXPOSE 7860
         | 
| 25 |  | 
| 26 | 
             
            # Command to run the Streamlit app directly
         | 
| 27 | 
            -
            CMD ["streamlit", "run", "model.py", "--server.port", "7860", "--server.enableCORS", "false", "--server.enableXsrfProtection", "false", "--browser.gatherUsageStats", "false"]
         | 
|  | |
| 14 | 
             
            # Set Hugging Face cache directory to a writable location
         | 
| 15 | 
             
            ENV HF_HOME /app/.cache
         | 
| 16 |  | 
| 17 | 
            +
            # Set a writable config directory for Ultralytics
         | 
| 18 | 
            +
            ENV YOLO_CONFIG_DIR /app/.config/ultralytics
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            # Set a writable cache directory for Matplotlib
         | 
| 21 | 
            +
            ENV MPLCONFIGDIR /app/.config/matplotlib
         | 
| 22 | 
            +
             | 
| 23 | 
             
            # Copy all project files into the Docker image
         | 
| 24 | 
             
            COPY . /app
         | 
| 25 |  | 
|  | |
| 30 | 
             
            EXPOSE 7860
         | 
| 31 |  | 
| 32 | 
             
            # Command to run the Streamlit app directly
         | 
| 33 | 
            +
            CMD ["streamlit", "run", "model.py", "--server.port", "7860", "--server.enableCORS", "false", "--server.enableXsrfProtection", "false", "--browser.gatherUsageStats", "false"]
         |