ShadowTEM commited on
Commit
e634aec
·
verified ·
1 Parent(s): e68c981

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -4,8 +4,8 @@ FROM python:3.12.8
4
  ENV PYTHONUNBUFFERED=1
5
  ENV HF_HOME=/app/.huggingface_cache
6
 
7
- # Create directories for the Hugging Face cache, VectorDB, and models
8
- RUN mkdir -p /app/.huggingface_cache /app/VectorDB /app/models
9
 
10
  # Install dependencies including wget for downloading model files
11
  RUN apt-get update && apt-get install -y \
@@ -29,8 +29,8 @@ RUN pip install -r requirements.txt
29
  # Copy the current directory contents into the container
30
  COPY . /app/
31
 
32
- # Set appropriate permissions for the cache, vectorstore, and models directories
33
- RUN chmod -R 777 /app/.huggingface_cache /app/VectorDB /app/models
34
 
35
  # Expose the port the app runs on
36
  EXPOSE 7860
 
4
  ENV PYTHONUNBUFFERED=1
5
  ENV HF_HOME=/app/.huggingface_cache
6
 
7
+ # Create directories for the Hugging Face cache, VectorDB, models and logs
8
+ RUN mkdir -p /app/.huggingface_cache /app/VectorDB /app/models /app/logs
9
 
10
  # Install dependencies including wget for downloading model files
11
  RUN apt-get update && apt-get install -y \
 
29
  # Copy the current directory contents into the container
30
  COPY . /app/
31
 
32
+ # Set appropriate permissions for the cache, vectorstore, models and logs directories
33
+ RUN chmod -R 777 /app/.huggingface_cache /app/VectorDB /app/models /app/logs
34
 
35
  # Expose the port the app runs on
36
  EXPOSE 7860