mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-26 17:10:57 -05:00
fix(docker): try to enable pnpm globally first
This commit is contained in:
parent
d9694ecd24
commit
4a21d34891
1 changed files with 6 additions and 5 deletions
11
Dockerfile
11
Dockerfile
|
@ -4,12 +4,13 @@ WORKDIR /usr/src/app
|
|||
COPY . .
|
||||
COPY .env.build .env
|
||||
|
||||
RUN corepack pnpm install --frozen-lockfile
|
||||
RUN corepack pnpm build:deps
|
||||
RUN corepack pnpm typecheck
|
||||
RUN NODE_OPTIONS='--max-old-space-size=4096' corepack pnpm build
|
||||
RUN corepack prepare pnpm --activate
|
||||
RUN pnpm install --frozen-lockfile
|
||||
RUN pnpm build:deps
|
||||
RUN pnpm typecheck
|
||||
RUN NODE_OPTIONS='--max-old-space-size=4096' pnpm build
|
||||
RUN find . -name "node_modules" -type d -prune
|
||||
RUN corepack pnpm install --prod
|
||||
RUN pnpm install --prod
|
||||
|
||||
FROM node:16-alpine
|
||||
WORKDIR /usr/src/app
|
||||
|
|
Loading…
Reference in a new issue