use printf instead of echo in dockerfile for portability
Browse files- docker/Dockerfile-runpod +1 -1
docker/Dockerfile-runpod
CHANGED
@@ -4,7 +4,7 @@ FROM winglian/axolotl:$BASE_TAG
|
|
4 |
RUN apt install --yes --no-install-recommends openssh-server tmux && \
|
5 |
mkdir -p ~/.ssh && \
|
6 |
chmod 700 ~/.ssh && \
|
7 |
-
|
8 |
chmod +x /workspace/axolotl/scripts/runpod-entrypoint.sh
|
9 |
|
10 |
ENTRYPOINT ["/workspace/axolotl/scripts/runpod-entrypoint.sh"]
|
|
|
4 |
RUN apt install --yes --no-install-recommends openssh-server tmux && \
|
5 |
mkdir -p ~/.ssh && \
|
6 |
chmod 700 ~/.ssh && \
|
7 |
+
printf "\n[[ -z \"\$TMUX\" ]] && { tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux; exit; }\n" >> ~/.bashrc && \
|
8 |
chmod +x /workspace/axolotl/scripts/runpod-entrypoint.sh
|
9 |
|
10 |
ENTRYPOINT ["/workspace/axolotl/scripts/runpod-entrypoint.sh"]
|