turome-learning commited on
Commit
42f5736
·
verified ·
1 Parent(s): 96b28ec

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -1,8 +1,11 @@
1
- FROM python:3.10
2
 
3
  # Set the working directory
4
  WORKDIR /app
5
 
 
 
 
6
  # Install dependencies
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
@@ -15,3 +18,4 @@ EXPOSE 8000
15
 
16
  # Run FastAPI when the container starts
17
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
 
1
+ FROM python:3.9
2
 
3
  # Set the working directory
4
  WORKDIR /app
5
 
6
+ # Set writable cache for Numba to prevent caching errors
7
+ ENV NUMBA_CACHE_DIR=/tmp/numba_cache/
8
+
9
  # Install dependencies
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
 
18
 
19
  # Run FastAPI when the container starts
20
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
21
+