Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -3,6 +3,11 @@ FROM python:3.8
|
|
3 |
|
4 |
# Install required system dependencies
|
5 |
RUN apt-get update && apt-get install -y libopenblas-dev git curl && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
# Set environment variables to avoid cache write errors
|
8 |
ENV HF_HOME=/app/hf_cache
|
|
|
3 |
|
4 |
# Install required system dependencies
|
5 |
RUN apt-get update && apt-get install -y libopenblas-dev git curl && rm -rf /var/lib/apt/lists/*
|
6 |
+
# Fix distutils / setuptools wheel build issue
|
7 |
+
RUN apt-get update && apt-get install -y python3-distutils
|
8 |
+
RUN pip install --upgrade pip
|
9 |
+
RUN pip install "setuptools<66.0.0"
|
10 |
+
ENV SETUPTOOLS_USE_DISTUTILS=stdlib
|
11 |
|
12 |
# Set environment variables to avoid cache write errors
|
13 |
ENV HF_HOME=/app/hf_cache
|