Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Upload Dockerfile
Browse files- Dockerfile +7 -1
    	
        Dockerfile
    CHANGED
    
    | @@ -13,8 +13,14 @@ RUN pip install --no-cache-dir -r requirements.txt | |
| 13 | 
             
            # Copy the rest of the application into the container at /app
         | 
| 14 | 
             
            COPY . /app
         | 
| 15 |  | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 16 | 
             
            # Expose port 7860
         | 
| 17 | 
             
            EXPOSE 7860
         | 
| 18 |  | 
| 19 | 
             
            # Run the FastAPI application on port 7860
         | 
| 20 | 
            -
            CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
         | 
|  | |
| 13 | 
             
            # Copy the rest of the application into the container at /app
         | 
| 14 | 
             
            COPY . /app
         | 
| 15 |  | 
| 16 | 
            +
            # Create a cache directory for transformers
         | 
| 17 | 
            +
            RUN mkdir -p /app/cache
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            # Set environment variable for transformers cache
         | 
| 20 | 
            +
            ENV TRANSFORMERS_CACHE=/app/cache
         | 
| 21 | 
            +
             | 
| 22 | 
             
            # Expose port 7860
         | 
| 23 | 
             
            EXPOSE 7860
         | 
| 24 |  | 
| 25 | 
             
            # Run the FastAPI application on port 7860
         | 
| 26 | 
            +
            CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
         |