mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-15 18:45:03 +00:00
build: optimize image size
This commit is contained in:
parent
65667e3965
commit
f9007a710b
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM node:22
|
||||
FROM node:22 as build
|
||||
|
||||
RUN mkdir /zeppelin
|
||||
RUN chown node:node /zeppelin
|
||||
|
@ -32,3 +32,8 @@ RUN npm run build
|
|||
# Prune dev dependencies
|
||||
WORKDIR /zeppelin
|
||||
RUN npm prune --omit=dev
|
||||
|
||||
FROM node:22-alpine AS main
|
||||
|
||||
USER node
|
||||
COPY --from=build --chown=node:node /zeppelin /zeppelin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue