lumbung-kios-cms/Dockerfile

24 lines
358 B
Docker
Raw Normal View History

2024-01-23 14:58:44 +00:00
FROM node:21-bookworm as base
2023-01-24 11:39:33 +00:00
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