You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
266 B
18 lines
266 B
FROM node:lts as builder
|
|
WORKDIR /build
|
|
|
|
COPY . .
|
|
RUN yarn install
|
|
RUN yarn build
|
|
|
|
FROM node:lts
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /build/dist /app/dist
|
|
COPY --from=builder /build/package.json /app/package.json
|
|
|
|
RUN yarn install --prod
|
|
|
|
CMD ["yarn", "start:prod"]
|
|
|