Skip to content

Commit

Permalink
fix: add env TRAINEE_WS
Browse files Browse the repository at this point in the history
  • Loading branch information
uhobeike committed Aug 11, 2024
1 parent 66ca6b3 commit d0b1ca1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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/*

Expand Down

0 comments on commit d0b1ca1

Please sign in to comment.