Commit a7122ead by Administrator

Update Dockerfile

1 parent 6294b05e
...@@ -19,6 +19,7 @@ ENV SERVER_PORT=8787 ...@@ -19,6 +19,7 @@ ENV SERVER_PORT=8787
RUN corepack enable RUN corepack enable
RUN npm config set registry https://registry.npmmirror.com/ RUN npm config set registry https://registry.npmmirror.com/
COPY . . COPY . .
RUN pnpm install
# 高德 Key 由仓库根的 .env.production 提供(Vite 在 production 模式自动读),这里不需要 --build-arg。 # 高德 Key 由仓库根的 .env.production 提供(Vite 在 production 模式自动读),这里不需要 --build-arg。
# 别把 ARG 加回来:未定义时它会插值成空串导出给构建,空串压过文件里的值,产物反倒变成 NO_KEY。 # 别把 ARG 加回来:未定义时它会插值成空串导出给构建,空串压过文件里的值,产物反倒变成 NO_KEY。
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!