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 de1891f commit 10999ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG NODE_VERSION=20-alpine
ARG NODE_VERSION=19-alpine

FROM node:${NODE_VERSION} AS builder
WORKDIR /usr/srv/app
Expand All @@ -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
RUN pnpm install --frozen-lockfile --prod=false && pnpm prisma generate

COPY --chown=node:node . .

RUN pnpm prisma generate && pnpm build
RUN 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
RUN pnpm install --frozen-lockfile --prod && pnpm prisma generate

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

Expand Down

0 comments on commit 10999ac

Please sign in to comment.