nroggendorff commited on
Commit
7f46925
·
verified ·
1 Parent(s): bf1b880

Merge when ready y#r7$6"{

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -25
Dockerfile CHANGED
@@ -1,26 +1,4 @@
1
- FROM docker:dind-rootless
2
- USER root
3
 
4
- RUN apk add --no-cache git bash
5
-
6
- ARG REPO_URL=https://github.com/nroggendorff/train-llama.git
7
-
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) \
20
- -t nroggendorff/train-llama:latest .
21
-
22
- RUN --mount=type=secret,id=DOCKER_PASSWORD,mode=0444 \
23
- echo $(cat /run/secrets/DOCKER_PASSWORD) | \
24
- docker login --username "nroggendorff" --password-stdin
25
-
26
- 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"]