test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
mol
2024-02-25 13:22:12 +08:00
parent 029d1d9f60
commit d16b5252d3
2 changed files with 9 additions and 20 deletions

View File

@ -6,7 +6,7 @@ EXPOSE 22
USER root
WORKDIR /home/coder
VOLUME [ "/home/coder/project", "/home/coder/.ssh", "/home/coder/.local", "/home/coder/.config" ]
VOLUME [ "/mnt/project", "/home/coder" ]
COPY entrypoint.sh /usr/bin/
@ -37,9 +37,7 @@ RUN echo "安装基础工具与配置文件" && \
# 安装 node 环境
echo "安装 node 环境" && \
# apt-get install -y npm && \
# 安装 brew 管理器
# git clone https://mirrors.aliyun.com/homebrew/install.git brew-install && \
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git" && \
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git" && \
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles" && \
@ -50,19 +48,11 @@ RUN echo "安装基础工具与配置文件" && \
echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /root/.bashrc && \
echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"' >> /root/.bashrc && \
echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"' >> /root/.bashrc && \
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git" && \
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git" && \
apt-get install -y build-essential && \
# /bin/bash /root/install.sh && \
# rm -rf /root/install.sh && \
#echo 'export HOMEBREW_API_DOMAIN="https://mirrors.aliyun.com/homebrew-bottles/api"' >> ~/.bash_profile && \
##echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/brew.git"' >> ~/.bash_profile && \
#echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/homebrew-core.git"' >> ~/.bash_profile && \
#echo 'export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.aliyun.com/homebrew/homebrew-bottles"' >> ~/.bash_profile && \
#source ~/.bash_profile && \
brew update && \
# 安装 n node 管理器
brew install n && \
ln -s /home/linuxbrew/.linuxbrew/bin/n /usr/bin/n && \
export N_NODE_MIRROR=https://npmmirror.com/mirrors/node/ && \
n 18.15.0 && \
# 安装 nrm
@ -75,12 +65,12 @@ RUN echo "安装基础工具与配置文件" && \
# 安装 python 环境
echo "安装 python 环境" && \
apt-get install -y python3 && \
# python3.8-dev python3.8-venv python3-pip python3-wheel
apt-get install -y python3 python3-dev python3-venv python3-pip python3-wheel && \
ln -s /usr/bin/python3 /usr/bin/python && \
# 安装 docker 环境
echo "安装 docker 环境" && \
apt-get install -y docker.io && \
# echo "安装 docker 环境" && \
# apt-get install -y docker.io && \
# 配置 ssh
echo "配置 ssh" && \