mayurasandakalum commited on
Commit
b2ce7a3
·
verified ·
1 Parent(s): daf6b71

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -7,7 +7,7 @@ WORKDIR /app
7
  # Add the current directory contents into the container at /app
8
  ADD . /app
9
 
10
- RUN mkdir -p /app/.cache
11
 
12
  # Install any needed packages specified in requirements.txt
13
  # Also install build-essential for C++ compiler
@@ -15,12 +15,9 @@ RUN apt-get update && \
15
  apt-get install -y --no-install-recommends build-essential && \
16
  pip install -r requirements.txt
17
 
18
- # Set the SENTENCE_TRANSFORMERS_HOME environment variable
19
- ENV SENTENCE_TRANSFORMERS_HOME=/app/.cache
20
 
21
- ENV TRANSFORMERS_CACHE=/app/.cache
22
-
23
- ENV HF_HOME=/app/.cache
24
 
25
  RUN pip install sentence_transformers
26
 
 
7
  # Add the current directory contents into the container at /app
8
  ADD . /app
9
 
10
+ RUN mkdir -p /app/cache
11
 
12
  # Install any needed packages specified in requirements.txt
13
  # Also install build-essential for C++ compiler
 
15
  apt-get install -y --no-install-recommends build-essential && \
16
  pip install -r requirements.txt
17
 
18
+ ENV TRANSFORMERS_CACHE=/app/cache
 
19
 
20
+ ENV HF_HOME=/app/cache
 
 
21
 
22
  RUN pip install sentence_transformers
23