update
This commit is contained in:
parent
56475c568b
commit
df2ae33d60
@ -13,13 +13,13 @@ COPY package*.json ./
|
|||||||
RUN npm config set registry http://mirrors.cloud.tencent.com/npm/
|
RUN npm config set registry http://mirrors.cloud.tencent.com/npm/
|
||||||
|
|
||||||
# 安装依赖
|
# 安装依赖
|
||||||
RUN npm install
|
RUN npm install && npm install @vue/cli-service --save-dev
|
||||||
|
|
||||||
# 复制源代码
|
# 复制源代码
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# 构建应用
|
# 构建应用
|
||||||
RUN npx vue-cli-service build || npm run build
|
RUN node_modules/.bin/vue-cli-service build || npm run build
|
||||||
|
|
||||||
# 生产阶段
|
# 生产阶段
|
||||||
FROM nginx:stable-alpine
|
FROM nginx:stable-alpine
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user