2022-02-05 20:17:00 +01:00
|
|
|
FROM node:16 as build
|
2021-10-10 20:11:03 +02:00
|
|
|
WORKDIR /build/
|
|
|
|
COPY package.json yarn.lock ./
|
|
|
|
RUN yarn install --frozen-lockfile
|
|
|
|
COPY . .
|
|
|
|
RUN yarn build
|
|
|
|
|
2021-12-09 23:01:36 +01:00
|
|
|
FROM node:16 as prod
|
2021-10-10 20:11:03 +02:00
|
|
|
WORKDIR /app/
|
|
|
|
COPY --from=build /build/package.json /build/yarn.lock ./
|
|
|
|
COPY --from=build /build/dist ./dist
|
|
|
|
RUN yarn install --production --frozen-lockfile
|
|
|
|
CMD ["yarn", "start"]
|