feat: code-server
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
范胜发
2024-02-22 15:50:52 +08:00
parent 276931969d
commit efaa05cf9b
3 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@ WORKDIR /app
COPY . .
VOLUME [ "/project", "/root/.ssh", "/root/.local", "/root/.config" ]
VOLUME [ "/app/project", "/root/.ssh", "/root/.local", "/root/.config" ]
# 运行时可以添加代理
ARG PROXY
@ -84,6 +84,7 @@ RUN echo "安装 code-server" && \
apt update && \
# apt-get install -y build-essential pkg-config python3 && \
apt install -y pkg-config && \
npm install --global npm@^8 && \
npm config set python python3 && \
npm install --global code-server --unsafe-perm