fix(docker): add pnpm version

This commit is contained in:
Paul Makles 2022-09-19 14:43:16 +01:00
parent 4a21d34891
commit 9369b46c14

View file

@ -4,7 +4,7 @@ WORKDIR /usr/src/app
COPY . . COPY . .
COPY .env.build .env COPY .env.build .env
RUN corepack prepare pnpm --activate RUN corepack prepare pnpm@7.12.0 --activate
RUN pnpm install --frozen-lockfile RUN pnpm install --frozen-lockfile
RUN pnpm build:deps RUN pnpm build:deps
RUN pnpm typecheck RUN pnpm typecheck
@ -14,7 +14,8 @@ RUN pnpm install --prod
FROM node:16-alpine FROM node:16-alpine
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY --from=builder /usr/src/app . COPY --from=builder /usr/src/app .
EXPOSE 5000 EXPOSE 5000
CMD [ "pnpm", "start:inject" ] CMD [ "npm", "run", "start:inject" ]