lumbung-kios-cms/Dockerfile
Aadil Ayub 809db72f56
All checks were successful
continuous-integration/drone/push Build is passing
update dependencies and dockerfile
2024-01-23 19:58:44 +05:00

24 lines
358 B
Docker

FROM node:21-bookworm as base
FROM base as builder
WORKDIR /home/node
COPY package*.json ./
COPY . .
RUN yarn install
RUN yarn build
FROM base as runtime
ENV NODE_ENV=production
WORKDIR /home/node
COPY package*.json ./
RUN yarn install --production
COPY --from=builder /home/node/dist ./dist
COPY --from=builder /home/node/build ./build
EXPOSE 3000