mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-23 23:50:57 -05:00
20 lines
370 B
Docker
20 lines
370 B
Docker
FROM node:16-buster AS builder
|
|
|
|
WORKDIR /usr/src/app
|
|
COPY package*.json ./
|
|
|
|
RUN yarn --no-cache
|
|
|
|
COPY . .
|
|
COPY .env.build .env
|
|
RUN yarn add --dev @babel/plugin-proposal-decorators
|
|
RUN yarn typecheck
|
|
RUN yarn build:highmem
|
|
RUN npm prune --production
|
|
|
|
FROM node:16-buster
|
|
WORKDIR /usr/src/app
|
|
COPY --from=builder /usr/src/app .
|
|
|
|
EXPOSE 5000
|
|
CMD [ "yarn", "start:inject" ]
|