edit dockerfile
This commit is contained in:
parent
cf901d1ee1
commit
6e489a0a8d
1 changed files with 4 additions and 4 deletions
|
|
@ -2,11 +2,11 @@
|
|||
FROM node:20-alpine AS build-stage
|
||||
WORKDIR /app
|
||||
# optimize build speed by copy all .xx folder and
|
||||
COPY *.json .
|
||||
COPY *.*s .
|
||||
COPY cms/*.json .
|
||||
COPY cms/*.*s .
|
||||
RUN npm i
|
||||
COPY static ./static
|
||||
COPY src ./src
|
||||
COPY cms/static ./static
|
||||
COPY cms/src ./src
|
||||
RUN npm run build
|
||||
|
||||
FROM node:lts-alpine AS production-stage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue