2021-12-20 15:48:27 -05:00
|
|
|
FROM node:16-buster AS builder
|
2021-08-30 10:24:15 -04:00
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY . .
|
|
|
|
COPY .env.build .env
|
2022-04-29 11:17:31 -04:00
|
|
|
|
|
|
|
RUN yarn install --frozen-lockfile
|
2022-12-05 09:42:43 -05:00
|
|
|
RUN yarn build:deps
|
2023-07-06 14:01:29 -04:00
|
|
|
# RUN yarn typecheck # lol no
|
2022-04-29 10:49:05 -04:00
|
|
|
RUN yarn build:highmem
|
2022-04-29 11:17:31 -04:00
|
|
|
RUN yarn workspaces focus --production --all
|
2021-08-30 10:24:15 -04:00
|
|
|
|
2022-04-29 11:17:31 -04:00
|
|
|
FROM node:16-alpine
|
2021-08-30 10:24:15 -04:00
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY --from=builder /usr/src/app .
|
|
|
|
|
|
|
|
EXPOSE 5000
|
2021-12-20 15:48:27 -05:00
|
|
|
CMD [ "yarn", "start:inject" ]
|