Ronan
commited on
docker sctg/roco-idefics3:0.0.6
Browse files- Dockerfile +9 -5
Dockerfile
CHANGED
@@ -1,13 +1,17 @@
|
|
1 |
-
# build with: docker build . --tag sctg/roco-idefics3:0.0.
|
2 |
# run with
|
3 |
-
# docker run --gpus all --user=42420:42420 -p 8080:8080 -e HF_TOKEN=hf_TOKEN -it sctg/roco-idefics3:0.0.
|
4 |
# docker run --gpus all --user=42420:42420 -p 8080:8080 -it sctg/roco-idefics3:0.0.5 bash -i /start.sh python /learn.py hf_...
|
5 |
FROM nvidia/cuda:11.6.1-devel-ubuntu20.04
|
6 |
-
|
7 |
-
# RUN mkdir -p /workspace
|
8 |
RUN /usr/sbin/addgroup --gid 42420 ovh
|
9 |
RUN /usr/sbin/useradd -u 42420 --gid 42420 -m -d /workspace -s /bin/bash ovh
|
10 |
-
RUN apt update -y && apt-get install -y curl git git-lfs screen
|
|
|
|
|
|
|
|
|
|
|
11 |
COPY --chmod=777 start.sh /start.sh
|
12 |
COPY learn.py /learn.py
|
13 |
# Mandatory to run the jobs in rootless mode
|
|
|
1 |
+
# build with: docker build . --tag sctg/roco-idefics3:0.0.6 --tag sctg/roco-idefics3:latest --push
|
2 |
# run with
|
3 |
+
# docker run --gpus all --user=42420:42420 -p 8080:8080 -e HF_TOKEN=hf_TOKEN -it sctg/roco-idefics3:0.0.6 bash -i /start.sh sleep infinity hf_TOKEN
|
4 |
# docker run --gpus all --user=42420:42420 -p 8080:8080 -it sctg/roco-idefics3:0.0.5 bash -i /start.sh python /learn.py hf_...
|
5 |
FROM nvidia/cuda:11.6.1-devel-ubuntu20.04
|
6 |
+
ARG NODE_MAJOR="20"
|
|
|
7 |
RUN /usr/sbin/addgroup --gid 42420 ovh
|
8 |
RUN /usr/sbin/useradd -u 42420 --gid 42420 -m -d /workspace -s /bin/bash ovh
|
9 |
+
RUN apt update -y && apt-get install -y curl git git-lfs screen \
|
10 |
+
&& mkdir -p /etc/apt/keyrings \
|
11 |
+
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
|
12 |
+
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
|
13 |
+
&& apt-get update \
|
14 |
+
&& apt-get install nodejs -y
|
15 |
COPY --chmod=777 start.sh /start.sh
|
16 |
COPY learn.py /learn.py
|
17 |
# Mandatory to run the jobs in rootless mode
|