From 1efb4323deb480afead800d7f7591f5e741d8cf6 Mon Sep 17 00:00:00 2001 From: Kuingsmile Date: Sat, 17 Feb 2024 22:14:42 -0800 Subject: [PATCH] :package: Chore(custom): test arm64 docker build --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cb31eab..435de89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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