You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

公司代理限制下,如何在Debian Docker容器手动安装lua-resty-openidc

问题背景与疑问

环境限制

  • 基于debian:bullseye-slim的Docker容器
  • 公司代理屏蔽了GitHub与LuaRocks,需手动安装Lua包lua-resty-openidc

当前操作及报错

尝试通过以下命令安装apiclient:

RUN set luarocks make apiclient-2.6.0-2.rockspec

在公司构建服务器上触发报错:

luarocks make apiclient-2.6.0-2.rockspec
Missing dependencies for apiclient 2.6.0-2:
   lua-resty-openidc ~> 1.7.6 (not installed)

apiclient 2.6.0-2 depends on lua ~> 5.1 (5.1-1 provided by VM)
apiclient 2.6.0-2 depends on lua-resty-openidc ~> 1.7.6 (not installed)
Warning: Failed searching manifest: Failed downloading https://luarocks.org/manifest-5.1 - failed downloading https://luarocks.org/manifest-5.1
...
Error: Could not satisfy dependency lua-resty-openidc ~> 1.7.6: No results matching query were found for Lua 5.1.

本地已尝试的操作

本地MacBook无代理限制,已成功构建容器,执行过以下步骤:

  1. 用grep -rl openidc /查找lua-resty-openidc相关文件
  2. 将找到的文件复制到本地目录
  3. 构建时将文件复制到容器中

但构建服务器上构建时,Lua仍会尝试联网下载lua-resty-openidc。

待解决问题

  1. 完全手动安装lua-resty-openidc还需要哪些文件?
  2. 是否可以让LuaRocks使用本地缓存/root/.cache/luarocks?如果可行,需要哪些缓存文件?

内容的提问来源于stack exchange,提问作者mles

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.22 10:47:37