ShadowTEM commited on
Commit
d32b726
·
verified ·
1 Parent(s): 7418d29

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -1,11 +1,11 @@
1
  FROM python:3.12.8
2
 
3
  # Set environment variables
4
- ENV PYTHONUNBUFFERED 1
5
  ENV HF_HOME=/app/.huggingface_cache
6
 
7
- # Create a directory for the Hugging Face cache
8
- RUN mkdir -p /app/.huggingface_cache
9
 
10
  # Install dependencies
11
  RUN apt-get update && apt-get install -y \
@@ -18,14 +18,13 @@ RUN apt-get update && apt-get install -y \
18
  WORKDIR /app
19
 
20
  COPY requirements.txt .
21
- # requirments
22
  RUN pip install -r requirements.txt
23
 
24
  # Copy the current directory contents into the container
25
  COPY . /app/
26
 
27
- # Set the appropriate permissions for the HuggingFace cache directory
28
- RUN chmod -R 777 /app/.huggingface_cache
29
 
30
  # Expose the port the app runs on
31
  EXPOSE 7860
 
1
  FROM python:3.12.8
2
 
3
  # Set environment variables
4
+ ENV PYTHONUNBUFFERED=1
5
  ENV HF_HOME=/app/.huggingface_cache
6
 
7
+ # Create directories for the Hugging Face cache and the VectorDB
8
+ RUN mkdir -p /app/.huggingface_cache /app/VectorDB
9
 
10
  # Install dependencies
11
  RUN apt-get update && apt-get install -y \
 
18
  WORKDIR /app
19
 
20
  COPY requirements.txt .
 
21
  RUN pip install -r requirements.txt
22
 
23
  # Copy the current directory contents into the container
24
  COPY . /app/
25
 
26
+ # Set the appropriate permissions for the cache and vectorstore directories
27
+ RUN chmod -R 777 /app/.huggingface_cache /app/VectorDB
28
 
29
  # Expose the port the app runs on
30
  EXPOSE 7860