updated build
This commit is contained in:
parent
2361fa7b92
commit
0afd119bdb
6 changed files with 83 additions and 83 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# docker build . -t docker.frappet.com/demo/qualifying-exam-cms:latest
|
||||
FROM node:18 as build
|
||||
FROM node:latest as build-stage
|
||||
WORKDIR /app
|
||||
# optimize build speed by copy all .xx folder and
|
||||
COPY *.json .
|
||||
|
|
@ -9,7 +9,7 @@ COPY static ./static
|
|||
COPY src ./src
|
||||
# RUN ls
|
||||
RUN npm run build
|
||||
FROM node:18-alpine
|
||||
FROM node:lts-alpine
|
||||
WORKDIR /app
|
||||
COPY --from=build /app .
|
||||
EXPOSE 80
|
||||
Loading…
Add table
Add a link
Reference in a new issue