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 package*.json ./
|
|
|
|
|
|
|
|
RUN yarn --no-cache
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
COPY .env.build .env
|
2021-12-11 14:42:03 -05:00
|
|
|
RUN yarn add --dev @babel/plugin-proposal-decorators
|
2021-08-30 10:24:15 -04:00
|
|
|
RUN yarn typecheck
|
2022-04-29 10:49:05 -04:00
|
|
|
RUN yarn build:highmem
|
2021-08-30 10:24:15 -04:00
|
|
|
RUN npm prune --production
|
|
|
|
|
2021-12-20 08:37:21 -05:00
|
|
|
FROM node:16-buster
|
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" ]
|