mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-09 00:33:38 -05:00
6767ea1853
* Remove broken submodules * Fix yarn typecheck * Add build:deps before typecheck to fix missing dependencies * fix: minor linting nitpick Co-authored-by: Sophie L <beartechtalks@gmail.com>
18 lines
347 B
Docker
18 lines
347 B
Docker
FROM node:16-buster AS builder
|
|
|
|
WORKDIR /usr/src/app
|
|
COPY . .
|
|
COPY .env.build .env
|
|
|
|
RUN yarn install --frozen-lockfile
|
|
RUN yarn build:deps
|
|
RUN yarn typecheck
|
|
RUN yarn build:highmem
|
|
RUN yarn workspaces focus --production --all
|
|
|
|
FROM node:16-alpine
|
|
WORKDIR /usr/src/app
|
|
COPY --from=builder /usr/src/app .
|
|
|
|
EXPOSE 5000
|
|
CMD [ "yarn", "start:inject" ]
|