Spaces:
Paused
Paused
docker update
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -20,6 +20,11 @@ RUN apt-get update && \
|
|
| 20 |
build-essential \
|
| 21 |
&& rm -rf /var/lib/apt/lists/*
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
# Copy requirements first to leverage Docker layer caching
|
| 24 |
COPY requirements-hf.txt .
|
| 25 |
|
|
|
|
| 20 |
build-essential \
|
| 21 |
&& rm -rf /var/lib/apt/lists/*
|
| 22 |
|
| 23 |
+
# Configure git to avoid permission issues during HF build
|
| 24 |
+
RUN git config --global --add safe.directory /app && \
|
| 25 |
+
git config --global user.email "[email protected]" && \
|
| 26 |
+
git config --global user.name "Hugging Face"
|
| 27 |
+
|
| 28 |
# Copy requirements first to leverage Docker layer caching
|
| 29 |
COPY requirements-hf.txt .
|
| 30 |
|