fix: add optionalDependencies for Alpine Linux build support [AC-IDS-13]

This commit is contained in:
MerCry 2026-03-03 00:55:28 +08:00
parent ad7000efd4
commit 307a5b4ef4
2 changed files with 4 additions and 1 deletions

View File

@ -11,7 +11,7 @@ ENV VITE_APP_BASE_API=$VITE_APP_BASE_API
COPY package*.json ./
RUN npm install && npm install @rollup/rollup-linux-x64-musl --save-optional
RUN npm install
COPY . .

View File

@ -22,5 +22,8 @@
"typescript": "~5.6.0",
"vite": "^5.1.4",
"vue-tsc": "^2.1.0"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-musl": "^4.18.0"
}
}