feat: code-server
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
范胜发
2024-02-22 17:07:40 +08:00
parent efaa05cf9b
commit 2fe8c30729
4 changed files with 63 additions and 38 deletions

View File

@ -1,11 +1,11 @@
FROM ubuntu
EXPOSE 8080
EXPOSE 22
WORKDIR /app
WORKDIR /home/coder
COPY . .
VOLUME [ "/app/project", "/root/.ssh", "/root/.local", "/root/.config" ]
VOLUME [ "/home/coder/project", "/root/.ssh", "/root/.local", "/root/.config" ]
# 运行时可以添加代理
ARG PROXY
@ -89,5 +89,5 @@ RUN echo "安装 code-server" && \
npm install --global code-server --unsafe-perm
ENTRYPOINT ["/app/docker-entry-point.sh"]
ENTRYPOINT ["/home/coder/entrypoint.sh", "--bind-addr", "0.0.0.0:8080", "."]