sam12345324 commited on
Commit
ec35886
·
verified ·
1 Parent(s): c24eb47

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -4,13 +4,17 @@ FROM python:3.10
4
  # Set working directory
5
  WORKDIR /app
6
 
7
- # Copy files
8
  COPY . /app
9
 
10
  # Install requirements
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Expose port (Hugging Face Spaces uses 7860 by default, but FastAPI can run on 8000)
 
 
 
 
14
  EXPOSE 8000
15
 
16
  # Run FastAPI with uvicorn
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
+ # Copy project files
8
  COPY . /app
9
 
10
  # Install requirements
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Hugging Face Spaces only allows writing to /data
14
+ # Set environment variable so storage.py can use it
15
+ ENV STORAGE_PATH=/data/media
16
+
17
+ # Expose port (Hugging Face will route traffic to it)
18
  EXPOSE 8000
19
 
20
  # Run FastAPI with uvicorn