Cannot find package 'drizzle-orm' in sveltekit docker

Hi Guys I need some help, i try to build sveltekit app with drizzle that i containerized using docker. the build is success however when i try to run it, it keep failing due to drizzle-orm is not found any idea why?
No description
3 Replies
alka_99
alka_99OP5mo ago
FROM node:20 AS builder

WORKDIR /app

COPY package*.json .
COPY pnpm-lock.yaml .

RUN npm i -g pnpm
RUN pnpm install

COPY . .

RUN pnpm run build
RUN pnpm prune --prod

FROM node:20 AS deployer

WORKDIR /app

COPY --from=builder /app/build build/
COPY --from=builder /app/package.json .

EXPOSE 3000

ENV NODE_ENV=production

CMD [ "node", "build" ]
FROM node:20 AS builder

WORKDIR /app

COPY package*.json .
COPY pnpm-lock.yaml .

RUN npm i -g pnpm
RUN pnpm install

COPY . .

RUN pnpm run build
RUN pnpm prune --prod

FROM node:20 AS deployer

WORKDIR /app

COPY --from=builder /app/build build/
COPY --from=builder /app/package.json .

EXPOSE 3000

ENV NODE_ENV=production

CMD [ "node", "build" ]
here is my docker config
alka_99
alka_99OP5mo ago
This is solved
Want results from more Discord servers?
Add your server