Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
FROM docker:
|
|
|
2 |
|
3 |
RUN apk add --no-cache git bash
|
4 |
|
@@ -7,6 +8,12 @@ ARG REPO_URL=https://github.com/nroggendorff/train-llama.git
|
|
7 |
WORKDIR /workspace
|
8 |
RUN git clone $REPO_URL .
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
RUN --mount=type=secret,id=HF_TOKEN,mode=0444 \
|
11 |
docker build -f Build/Dockerfile \
|
12 |
--build-arg HF_TOKEN=$(cat /run/secrets/HF_TOKEN) \
|
|
|
1 |
+
FROM docker:dind-rootless
|
2 |
+
USER root
|
3 |
|
4 |
RUN apk add --no-cache git bash
|
5 |
|
|
|
8 |
WORKDIR /workspace
|
9 |
RUN git clone $REPO_URL .
|
10 |
|
11 |
+
RUN bash -c "dockerd & \
|
12 |
+
while ! docker info > /dev/null 2>&1; do \
|
13 |
+
echo 'Waiting for Docker daemon in rootless mode...'; \
|
14 |
+
sleep 2; \
|
15 |
+
done"
|
16 |
+
|
17 |
RUN --mount=type=secret,id=HF_TOKEN,mode=0444 \
|
18 |
docker build -f Build/Dockerfile \
|
19 |
--build-arg HF_TOKEN=$(cat /run/secrets/HF_TOKEN) \
|