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.

14 lines
247 B

2 years ago
FROM node:18 AS build-env
COPY . /app
WORKDIR /app
RUN yarn
RUN yarn build
FROM node:18
COPY --from=build-env /app/build /app
2 years ago
COPY package.json /app/package.json
2 years ago
WORKDIR /app
2 years ago
env NODE_ENV=production
RUN yarn install --production
2 years ago
CMD ["index.js"]