javaeeduke commited on
Commit
ee501fe
·
verified ·
1 Parent(s): 638cef6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -34,4 +34,4 @@ EXPOSE 7860
34
 
35
  # 8. 绝杀:使用内置的 node 动态生成 64 位完美的 Hex 密钥并启动服务
36
  # 这完美满足了作者代码里对 64 hex chars 的死规定!
37
- CMD ["sh", "-c", "export ENCRYPTION_KEY=$(node -e \"console.log(require('crypto').randomBytes(32).toString('hex'))\") && node server/dist/index.js"]
 
34
 
35
  # 8. 绝杀:使用内置的 node 动态生成 64 位完美的 Hex 密钥并启动服务
36
  # 这完美满足了作者代码里对 64 hex chars 的死规定!
37
+ CMD ["sh", "-c", "rm -rf /app/server/data && mkdir -p /data/freellm && ln -s /data/freellm /app/server/data && export ENCRYPTION_KEY=$(node -e \"console.log(require('crypto').randomBytes(32).toString('hex'))\") && node server/dist/index.js"]