Skip to content

Commit

Permalink
📦 Chore(custom): test arm64 docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuingsmile committed Feb 18, 2024
1 parent 863c409 commit 1efb432
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# 第一阶段:使用Node.js 18版本构建Vue项目
FROM node:18 as build-stage
FROM node:18-alpine3.19 as build-stage
WORKDIR /app

# 复制项目文件并安装依赖
COPY package.json yarn.lock ./
RUN yarn
RUN yarn config set network-timeout 300000
RUN apk add g++ make py3-pip
RUN yarn global add node-gyp
RUN yarn install
COPY . .
RUN yarn run build

Expand Down

0 comments on commit 1efb432

Please sign in to comment.