updated build

This commit is contained in:
Warunee Tamkoo 2024-12-03 17:32:54 +07:00
parent 2361fa7b92
commit 0afd119bdb
6 changed files with 83 additions and 83 deletions

View file

@ -1,17 +0,0 @@
# docker build . -t docker.frappet.com/demo/qualifying-exam-cms:latest
FROM node:18 as build
WORKDIR /app
# optimize build speed by copy all .xx folder and
COPY *.json .
COPY *.*s .
RUN npm i
COPY static ./static
COPY src ./src
# RUN ls
RUN npm run build
FROM node:18-alpine
WORKDIR /app
COPY --from=build /app .
EXPOSE 80
ENV PORT=80
CMD ["node", "./build/index.js"]