Dovakiins commited on
Commit
58a9a38
·
verified ·
1 Parent(s): 9ea8e9a

Upload Dockerfile-cloud

Browse files
Files changed (1) hide show
  1. Dockerfile-cloud +27 -0
Dockerfile-cloud ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ARG BASE_TAG=main
2
+ FROM winglian/axolotl:$BASE_TAG
3
+
4
+ ENV HF_DATASETS_CACHE="/workspace/data/huggingface-cache/datasets"
5
+ ENV HUGGINGFACE_HUB_CACHE="/workspace/data/huggingface-cache/hub"
6
+ ENV TRANSFORMERS_CACHE="/workspace/data/huggingface-cache/hub"
7
+ ENV HF_HOME="/workspace/data/huggingface-cache/hub"
8
+ ENV HF_HUB_ENABLE_HF_TRANSFER="1"
9
+
10
+ EXPOSE 8888
11
+ EXPOSE 22
12
+
13
+ COPY scripts/cloud-entrypoint.sh /root/cloud-entrypoint.sh
14
+ COPY scripts/motd /etc/motd
15
+
16
+ RUN pip install jupyterlab notebook ipywidgets && \
17
+ jupyter lab clean
18
+ RUN apt install --yes --no-install-recommends openssh-server tmux && \
19
+ mkdir -p ~/.ssh && \
20
+ chmod 700 ~/.ssh && \
21
+ printf "\n[[ -z \"\$TMUX\" ]] && { tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux; exit; }\n" >> ~/.bashrc && \
22
+ printf "[ ! -z \"\$TERM\" -a -r /etc/motd ] && cat /etc/motd\n" >> ~/.bashrc && \
23
+ chmod +x /workspace/axolotl/scripts/cloud-entrypoint.sh && \
24
+ chmod +x /root/cloud-entrypoint.sh
25
+
26
+ ENTRYPOINT ["/root/cloud-entrypoint.sh"]
27
+ CMD ["sleep", "infinity"]