moraxgiga commited on
Commit
67f004f
1 Parent(s): 72fa1f2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -8
Dockerfile CHANGED
@@ -4,12 +4,12 @@ FROM python:3.9
4
  # Set the working directory in the container to /app
5
  WORKDIR /app
6
 
7
- # Create a cache directory and grant broad permissions
8
- RUN mkdir -p /app/cache
9
- RUN chmod -R 777 /app/cache
10
 
11
- # Set environment variable for Transformers cache
12
- ENV TRANSFORMERS_CACHE=/app/cache
13
 
14
  # Copy the requirements file into the container at /app
15
  COPY ./requirements.txt /app/requirements.txt
@@ -20,9 +20,6 @@ RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
20
  # Copy the content of the local src directory to /app inside the container
21
  COPY . /app
22
 
23
- # Copy the jina directory into the container at /app/jina
24
- COPY ./jina /app/jina
25
-
26
  # Make port 7860 available to the world outside this container
27
  EXPOSE 7860
28
 
 
4
  # Set the working directory in the container to /app
5
  WORKDIR /app
6
 
7
+ # Create a directory for Hugging Face cache and set broad permissions
8
+ RUN mkdir -p /app/hf_cache
9
+ RUN chmod -R 777 /app/hf_cache
10
 
11
+ # Set environment variable for Hugging Face home
12
+ ENV HF_HOME=/app/hf_cache
13
 
14
  # Copy the requirements file into the container at /app
15
  COPY ./requirements.txt /app/requirements.txt
 
20
  # Copy the content of the local src directory to /app inside the container
21
  COPY . /app
22
 
 
 
 
23
  # Make port 7860 available to the world outside this container
24
  EXPOSE 7860
25