fix: keep bun, opencode coommand in env
This commit is contained in:
@@ -12,6 +12,7 @@ ENV CARGO_HOME=/usr/local/cargo \
|
||||
RUSTUP_HOME=/usr/local/rustup \
|
||||
BUN_INSTALL="/root/.bun"
|
||||
ENV PATH="$BUN_INSTALL/bin:/usr/local/cargo/bin:${PATH}"
|
||||
RUN chsh -s /bin/zsh root
|
||||
|
||||
# 3. 安装 Rust & Bun
|
||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
@@ -25,6 +26,7 @@ RUN ssh-keygen -A && \
|
||||
mkdir -p /root/.zed /root/.local/share/zed && \
|
||||
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
||||
|
||||
RUN sed -i 's/#PermitUserEnvironment no/PermitUserEnvironment yes/' /etc/ssh/sshd_config
|
||||
# 6. Shell 美化
|
||||
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
|
||||
|
||||
|
||||
Reference in New Issue
Block a user