优化Docker本地部署
This commit is contained in:
3
frontend/.dockerignore
Normal file
3
frontend/.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
||||
node_modules/
|
||||
dist/
|
||||
.DS_Store
|
||||
@@ -2,7 +2,10 @@ FROM node:22-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json* ./
|
||||
RUN npm install
|
||||
ARG TARGETARCH
|
||||
RUN npm ci \
|
||||
&& ROLLUP_VERSION=$(node -p "require('./node_modules/rollup/package.json').version") \
|
||||
&& npm install --no-save "@rollup/rollup-linux-${TARGETARCH}-musl@${ROLLUP_VERSION}"
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
|
||||
1108
frontend/package-lock.json
generated
Normal file
1108
frontend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user