QuentinL52 commited on
Commit
a718039
·
verified ·
1 Parent(s): f05d41d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -6,8 +6,8 @@ ENV PYTHONUNBUFFERED=1 \
6
  PIP_DISABLE_PIP_VERSION_CHECK=1 \
7
  PYTHONPATH=/app
8
 
9
-
10
- ENV XDG_DATA_HOME="/app/.local/share"
11
 
12
  WORKDIR /app
13
 
@@ -16,7 +16,8 @@ RUN apt-get update && apt-get install -y \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
  COPY requirements.txt .
19
- RUN pip install --system --no-cache -r requirements.txt
 
20
 
21
  COPY . .
22
 
 
6
  PIP_DISABLE_PIP_VERSION_CHECK=1 \
7
  PYTHONPATH=/app
8
 
9
+ ENV HF_HOME=/tmp/cache \
10
+ HF_HUB_CACHE=/tmp/cache/hub \
11
 
12
  WORKDIR /app
13
 
 
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
  COPY requirements.txt .
19
+
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
 
22
  COPY . .
23