MoizK commited on
Commit
a682f32
·
verified ·
1 Parent(s): 4122c82

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -9,8 +9,9 @@ RUN apt-get update && \
9
 
10
  WORKDIR /app
11
 
12
- # prevent Chainlit mkdir errors by pre-creating its default .files dir
13
- RUN mkdir -p /app/.files && chmod a+rwx /app/.files
 
14
 
15
  ENV PYTHONUNBUFFERED=1
16
  ENV TRANSFORMERS_CACHE=/app/model_cache
@@ -22,10 +23,7 @@ ENV CHAINLIT_PORT=7860
22
  COPY requirements.txt .
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
- RUN mkdir -p \
26
- /app/model_cache \
27
- /app/vectorstore/db_faiss \
28
- /app/data
29
 
30
  COPY model.py ingest.py chainlit.md download_assets.py ./
31
 
 
9
 
10
  WORKDIR /app
11
 
12
+ # pre-create Chainlit’s runtime dirs so it won’t hit permission errors
13
+ RUN mkdir -p /app/.files /app/.chainlit && \
14
+ chmod a+rwx /app/.files /app/.chainlit
15
 
16
  ENV PYTHONUNBUFFERED=1
17
  ENV TRANSFORMERS_CACHE=/app/model_cache
 
23
  COPY requirements.txt .
24
  RUN pip install --no-cache-dir -r requirements.txt
25
 
26
+ RUN mkdir -p /app/model_cache /app/vectorstore/db_faiss /app/data
 
 
 
27
 
28
  COPY model.py ingest.py chainlit.md download_assets.py ./
29