fix: 将auth设为none

This commit is contained in:
2026-01-08 21:34:53 +08:00
parent 18cb4f2fbc
commit d42784c454
4 changed files with 46 additions and 38 deletions

View File

@@ -51,5 +51,10 @@ RUN chmod -R 555 /home/coder/.local/share/code-server/extensions
# 通过设置环境变量,把插件市场 URL 指向空,这样搜索插件会直接报错或为空
ENV EXTENSIONS_GALLERY='{"serviceUrl": ""}'
# 删除历史遗留的 config.yaml避免 auth 被写死
RUN rm -f /home/coder/.config/code-server/config.yaml
# 最后切换回 coder 用户运行
USER coder
USER coder
CMD ["code-server", "--bind-addr", "0.0.0.0:8080", "--auth", "none"]