Spaces:
Running
Running
chore: Dockerfile - Added packages required by HuggingFace dev mode
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
# Use a Python image with uv pre-installed
|
| 2 |
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# Creating the /data directory and giving full access to users to avoid the errors:
|
| 5 |
# --> RUN mkdir -p /data
|
| 6 |
# mkdir: cannot create directory ‘/data’: Permission denied
|
|
|
|
| 1 |
# Use a Python image with uv pre-installed
|
| 2 |
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
|
| 3 |
|
| 4 |
+
# HuggingFace dev mode requires wget, git
|
| 5 |
+
RUN apt-get update && \
|
| 6 |
+
apt-get install -y bash curl wget procps git git-lfs && \
|
| 7 |
+
rm -rf /var/lib/apt/lists/*
|
| 8 |
+
|
| 9 |
# Creating the /data directory and giving full access to users to avoid the errors:
|
| 10 |
# --> RUN mkdir -p /data
|
| 11 |
# mkdir: cannot create directory ‘/data’: Permission denied
|