mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-26 17:10:57 -05:00
18 lines
343 B
Docker
18 lines
343 B
Docker
FROM node:16-buster AS builder
|
|
|
|
WORKDIR /usr/src/app
|
|
COPY . .
|
|
COPY .env.build .env
|
|
|
|
RUN pnpm install --frozen-lockfile
|
|
RUN pnpm typecheck
|
|
RUN pnpm build:highmem
|
|
# wipe node_modules for all packages
|
|
RUN pnpm install --prod
|
|
|
|
FROM node:16-alpine
|
|
WORKDIR /usr/src/app
|
|
COPY --from=builder /usr/src/app .
|
|
|
|
EXPOSE 5000
|
|
CMD [ "yarn", "start:inject" ]
|