mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-23 07:30:57 -05:00
fix(docker): add pnpm version
This commit is contained in:
parent
4a21d34891
commit
9369b46c14
1 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,7 @@ WORKDIR /usr/src/app
|
|||
COPY . .
|
||||
COPY .env.build .env
|
||||
|
||||
RUN corepack prepare pnpm --activate
|
||||
RUN corepack prepare pnpm@7.12.0 --activate
|
||||
RUN pnpm install --frozen-lockfile
|
||||
RUN pnpm build:deps
|
||||
RUN pnpm typecheck
|
||||
|
@ -14,7 +14,8 @@ RUN pnpm install --prod
|
|||
|
||||
FROM node:16-alpine
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY --from=builder /usr/src/app .
|
||||
|
||||
EXPOSE 5000
|
||||
CMD [ "pnpm", "start:inject" ]
|
||||
CMD [ "npm", "run", "start:inject" ]
|
||||
|
|
Loading…
Reference in a new issue