Spaces:
Runtime error
Runtime error
Optimize Dockerfile by removing unnecessary OS-level dependency installations
Browse files- Dockerfile +2 -5
Dockerfile
CHANGED
|
@@ -14,11 +14,8 @@ WORKDIR /home/user/app
|
|
| 14 |
COPY --chown=user requirements.txt /home/user/app/requirements.txt
|
| 15 |
|
| 16 |
# Install OS-level dependencies, Python dependencies
|
| 17 |
-
RUN
|
| 18 |
-
&&
|
| 19 |
-
&& rm -rf /var/lib/apt/lists/* \
|
| 20 |
-
&& pip install --upgrade pip \
|
| 21 |
-
&& pip install --no-cache-dir -r /home/user/app/requirements.txt
|
| 22 |
|
| 23 |
# Set environment variables for Hugging Face cache locations (inside container)
|
| 24 |
ENV HF_HOME=/home/user/app/hf_cache \
|
|
|
|
| 14 |
COPY --chown=user requirements.txt /home/user/app/requirements.txt
|
| 15 |
|
| 16 |
# Install OS-level dependencies, Python dependencies
|
| 17 |
+
RUN pip install --upgrade pip \
|
| 18 |
+
&& pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
# Set environment variables for Hugging Face cache locations (inside container)
|
| 21 |
ENV HF_HOME=/home/user/app/hf_cache \
|