aradhyapavan commited on
Commit
db74387
·
verified ·
1 Parent(s): 64f8bc6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.10-slim
2
 
3
  # Prevents Python from writing .pyc files and ensures logs are shown immediately
4
  ENV PYTHONDONTWRITEBYTECODE=1 \
@@ -30,12 +30,12 @@ RUN pip install --no-cache-dir -r /app/requirements.txt
30
  COPY . /app
31
 
32
  # Create necessary directories at build/run time
33
- RUN mkdir -p /app/uploads /app/faiss_indices \
34
  /app/.cache \
35
  /app/.cache/huggingface \
36
  /app/.cache/huggingface/hub \
37
  /app/.cache/huggingface/transformers \
38
- && chmod -R 777 /app/.cache /app/uploads /app/faiss_indices
39
 
40
  # Expose the port used by Hugging Face Spaces
41
  EXPOSE 7860
 
1
+ FROM python:3.11-slim
2
 
3
  # Prevents Python from writing .pyc files and ensures logs are shown immediately
4
  ENV PYTHONDONTWRITEBYTECODE=1 \
 
30
  COPY . /app
31
 
32
  # Create necessary directories at build/run time
33
+ RUN mkdir -p /data/uploads /data/faiss_indices \
34
  /app/.cache \
35
  /app/.cache/huggingface \
36
  /app/.cache/huggingface/hub \
37
  /app/.cache/huggingface/transformers \
38
+ && chmod -R 777 /app/.cache /data/uploads /data/faiss_indices
39
 
40
  # Expose the port used by Hugging Face Spaces
41
  EXPOSE 7860