Spaces:
Paused
Paused
Merge when ready
#16
by
nroggendorff
- opened
- Dockerfile +3 -26
Dockerfile
CHANGED
@@ -1,27 +1,4 @@
|
|
1 |
-
FROM
|
|
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
RUN apk add --no-cache git bash
|
6 |
-
|
7 |
-
ARG REPO_URL=https://github.com/nroggendorff/train-llama.git
|
8 |
-
|
9 |
-
WORKDIR /workspace
|
10 |
-
RUN git clone $REPO_URL .
|
11 |
-
|
12 |
-
RUN bash -c "dockerd && \
|
13 |
-
while ! docker info > /dev/null 2>&1; do \
|
14 |
-
echo 'Waiting for Docker daemon...'; \
|
15 |
-
sleep 1; \
|
16 |
-
done"
|
17 |
-
|
18 |
-
RUN --mount=type=secret,id=HF_TOKEN,mode=0444 \
|
19 |
-
docker build -f Build/Dockerfile \
|
20 |
-
--build-arg HF_TOKEN=$(cat /run/secrets/HF_TOKEN) \
|
21 |
-
-t nroggendorff/train-llama:latest .
|
22 |
-
|
23 |
-
RUN --mount=type=secret,id=DOCKER_PASSWORD,mode=0444 \
|
24 |
-
echo $(cat /run/secrets/DOCKER_PASSWORD) | \
|
25 |
-
docker login --username "nroggendorff" --password-stdin
|
26 |
-
|
27 |
-
CMD ["docker push", "nroggendorff/train-llama:latest"]
|
|
|
1 |
+
FROM nroggendorff/train-llama:latest
|
2 |
+
RUN python -u prep.py
|
3 |
|
4 |
+
CMD ["python", "train.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|