Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
|
| 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 |
-
|
|
|
|
| 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 |
|