Update Dockerfile
Browse files- 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
|
|
|
|
|
|
|
|
|
|
| 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
|