Grinding commited on
Commit
b6227b0
·
verified ·
1 Parent(s): da4263f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -1,6 +1,9 @@
1
  # Use an official Python runtime as a parent image
2
  FROM python:3.9-slim
3
 
 
 
 
4
  # Install ffmpeg, a required system-level dependency for pydub
5
  RUN apt-get update && apt-get install -y ffmpeg
6
 
@@ -17,5 +20,5 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
17
  COPY ./app /code/app
18
 
19
  # Command to run the application
20
- # The port must be 10000 for Hugging Face Spaces
21
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "10000"]
 
1
  # Use an official Python runtime as a parent image
2
  FROM python:3.9-slim
3
 
4
+ # --- FIX: Set a writable cache directory for the numba library ---
5
+ ENV NUMBA_CACHE_DIR=/tmp
6
+
7
  # Install ffmpeg, a required system-level dependency for pydub
8
  RUN apt-get update && apt-get install -y ffmpeg
9
 
 
20
  COPY ./app /code/app
21
 
22
  # Command to run the application
23
+ # The port must be 10000 for HugSging Face Spaces
24
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "10000"]