FlameF0X commited on
Commit
9ebda6c
·
verified ·
1 Parent(s): ef34ed3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -4
Dockerfile CHANGED
@@ -6,8 +6,14 @@ WORKDIR /code
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- # Copy app code
10
- COPY app.py .
11
 
12
- # Expose FastAPI
13
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # Copy application code
10
+ COPY . .
11
 
12
+ # Create cache directory with proper permissions
13
+ RUN mkdir -p /code/model_cache && chmod 777 /code/model_cache
14
+
15
+ # Expose the port
16
+ EXPOSE 8000
17
+
18
+ # Run the application
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]