Yeetek commited on
Commit
2e55c4c
·
verified ·
1 Parent(s): 8927bda

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -2,12 +2,15 @@ FROM python:3.10-slim
2
 
3
  ENV PIP_NO_CACHE_DIR=1 \
4
  PYTHONUNBUFFERED=1 \
5
- NUMBA_DISABLE_CACHE=1 \
6
  # default settings – can be overridden in the Space UI
7
  EMBED_MODEL=Seznam/simcse-small-e-czech \
8
  MIN_TOPIC_SIZE=10 \
9
  MAX_DOCS=5000
10
 
 
 
 
 
11
  WORKDIR /code
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
 
2
 
3
  ENV PIP_NO_CACHE_DIR=1 \
4
  PYTHONUNBUFFERED=1 \
 
5
  # default settings – can be overridden in the Space UI
6
  EMBED_MODEL=Seznam/simcse-small-e-czech \
7
  MIN_TOPIC_SIZE=10 \
8
  MAX_DOCS=5000
9
 
10
+ # ---------- numba cache fix ----------
11
+ ENV NUMBA_CACHE_DIR=/tmp/numba_cache
12
+ RUN mkdir -p /tmp/numba_cache
13
+
14
  WORKDIR /code
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt