learning4 commited on
Commit
e0d53ee
·
verified ·
1 Parent(s): 7c43c53

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -4,18 +4,15 @@ FROM python:3.10-slim
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
- # Set environment variables
8
- ENV TRANSFORMERS_CACHE=/app/cache
9
-
10
  # Upgrade pip to the latest version
11
  RUN pip install --upgrade pip
12
 
13
- # Create cache directory
14
- RUN mkdir -p /app/cache
15
-
16
  # Copy the current directory contents into the container at /app
17
  COPY . /app
18
 
 
 
 
19
  # Install any needed packages specified in requirements.txt
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
 
4
  # Set the working directory
5
  WORKDIR /app
6
 
 
 
 
7
  # Upgrade pip to the latest version
8
  RUN pip install --upgrade pip
9
 
 
 
 
10
  # Copy the current directory contents into the container at /app
11
  COPY . /app
12
 
13
+ # Set the HF_HOME environment variable
14
+ ENV HF_HOME /app/cache
15
+
16
  # Install any needed packages specified in requirements.txt
17
  RUN pip install --no-cache-dir -r requirements.txt
18