Spaces:
Sleeping
Sleeping
PunchNFIT commited on
Commit ·
6cf2811
1
Parent(s): 48ab98d
Fix git permission issue for Hugging Face Dev Mode
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -1,8 +1,13 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
|
|
|
| 3 |
# Add required system tools for Hugging Face Dev Mode
|
| 4 |
RUN apt-get update && apt-get install -y git wget && rm -rf /var/lib/apt/lists/*
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# Create and switch to /app
|
| 8 |
WORKDIR /app
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
+
|
| 4 |
# Add required system tools for Hugging Face Dev Mode
|
| 5 |
RUN apt-get update && apt-get install -y git wget && rm -rf /var/lib/apt/lists/*
|
| 6 |
|
| 7 |
+
# Preconfigure Git globally (system-wide to avoid permission issues)
|
| 8 |
+
RUN git config --system user.email "366degrees@users.noreply.huggingface.co" && \
|
| 9 |
+
git config --system user.name "366degrees"
|
| 10 |
+
|
| 11 |
|
| 12 |
# Create and switch to /app
|
| 13 |
WORKDIR /app
|