mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-10 17:43:40 +08:00
Merge pull request #308 from JefferyHcool/feature/optimize-build
fix(docker): 修复前端构建时缺少 .env 文件的问题
This commit is contained in:
@@ -36,6 +36,9 @@ WORKDIR /tmp/frontend
|
||||
COPY ./BillNote_frontend/package.json ./
|
||||
RUN pnpm install
|
||||
|
||||
# 复制 .env.example 到父目录,供 vite.config.ts 使用
|
||||
COPY ./.env.example /tmp/.env
|
||||
|
||||
COPY ./BillNote_frontend /tmp/frontend
|
||||
RUN pnpm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user