qeqwe15 commited on
Commit
658e406
·
verified ·
1 Parent(s): 6e10553

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -11,8 +11,11 @@ RUN git clone https://github.com/jianjianai/microsoft-copilot-porxy
11
  # 进入源代码目录
12
  WORKDIR /app/microsoft-copilot-porxy
13
 
14
- # 确保 dist 目录存在并设置权限
15
- RUN mkdir -p /app/microsoft-copilot-porxy/dist && chmod -R 777 /app/microsoft-copilot-porxy/dist
 
 
 
16
 
17
  # 安装依赖
18
  RUN npm install
 
11
  # 进入源代码目录
12
  WORKDIR /app/microsoft-copilot-porxy
13
 
14
+ # 确保 dist 目录和 .cache 目录存在并设置权限
15
+ RUN mkdir -p /app/microsoft-copilot-porxy/dist \
16
+ && mkdir -p /app/microsoft-copilot-porxy/node_modules/.cache/wrangler \
17
+ && chmod -R 777 /app/microsoft-copilot-porxy/dist \
18
+ && chmod -R 777 /app/microsoft-copilot-porxy/node_modules/.cache
19
 
20
  # 安装依赖
21
  RUN npm install