From d0b1ca1016d3038be2769bc78571d7f71f816e56 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Ikebe Date: Mon, 12 Aug 2024 01:38:15 +0900 Subject: [PATCH] fix: add env TRAINEE_WS --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 35ee68f..c3b38ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,8 @@ ARG USERNAME="root" ENV USER=$USERNAME \ USERNAME=$USERNAME \ GIT_PS1="${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w$(__git_ps1)\[\033[00m\](\t)\$ " \ - NO_GIT_PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w \$ " + NO_GIT_PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w \$ " \ + TRAINEE_WS=/home/$USERNAME/trainee # ユーザに関する設定 RUN groupadd -g 1000 $USERNAME && \ @@ -32,8 +33,9 @@ RUN apt update && apt upgrade -y && \ USER $USERNAME RUN mkdir -m 700 ~/.ssh && \ ssh-keyscan github.com > $HOME/.ssh/known_hosts + RUN --mount=type=ssh,uid=1000 source <(curl -s https://raw.githubusercontent.com/Shinsotsu-Tsukuba-Challenger/trainee/main/install.sh) && \ - : "remove cache" && \ + : "remove cache" && \ sudo apt-get autoremove -y -qq && \ sudo rm -rf /var/lib/apt/lists/*