Browse Source

dockerfile

master
feing 7 months ago
parent
commit
e50a9a8cc9
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      Dockerfile

+ 2
- 0
Dockerfile View File

@@ -7,7 +7,9 @@ WORKDIR /app
# 拷贝package.json和package-lock.json
COPY package*.json ./


# 安装依赖
RUN npm config set registry https://registry.npmmirror.com
RUN npx vite build

# 将项目文件拷贝到工作目录

Loading…
Cancel
Save