From 9369b46c14aa833f3e5c94b6df94a6ee70934d9b Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Mon, 19 Sep 2022 14:43:16 +0100 Subject: [PATCH] fix(docker): add pnpm version --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9ace579f..5c0055e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ]