Skip to content

Commit

Permalink
fix: Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
DevNono committed May 16, 2024
1 parent 10999ac commit f2fd4bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ RUN npm install -g pnpm

COPY --chown=node:node package.json pnpm-lock.yaml ./

RUN pnpm install --frozen-lockfile --prod=false && pnpm prisma generate
RUN pnpm install --frozen-lockfile --prod=false

COPY --chown=node:node . .

RUN pnpm build
RUN pnpm prisma generate && pnpm build

FROM node:${NODE_VERSION} AS runner
WORKDIR /usr/srv/app
Expand All @@ -21,7 +21,7 @@ RUN npm install -g pnpm

COPY --from=builder --chown=node:node /usr/srv/app/package.json /usr/srv/app/pnpm-lock.yaml ./

RUN pnpm install --frozen-lockfile --prod && pnpm prisma generate
RUN pnpm install --frozen-lockfile --prod

COPY --from=builder --chown=node:node /usr/srv/app/build ./

Expand Down

0 comments on commit f2fd4bf

Please sign in to comment.