File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,19 +26,19 @@ WORKDIR /triggerdotdev
2626# Corepack is used to install pnpm
2727RUN corepack enable
2828ENV NODE_ENV development
29- RUN pnpm install --ignore-scripts --no-frozen-lockfile
29+ RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --ignore-scripts --no-frozen-lockfile
3030
3131# # Production deps
3232FROM base AS production-deps
3333WORKDIR /triggerdotdev
3434# Corepack is used to install pnpm
3535RUN corepack enable
3636ENV NODE_ENV production
37- RUN pnpm install --prod --no-frozen-lockfile
37+ RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --prod --no-frozen-lockfile
3838COPY --from=pruner --chown=node:node /triggerdotdev/internal-packages/database/prisma/schema.prisma /triggerdotdev/internal-packages/database/prisma/schema.prisma
3939# RUN pnpm add @prisma/client@5.1.1 -w
4040ENV NPM_CONFIG_IGNORE_WORKSPACE_ROOT_CHECK true
41- RUN pnpx prisma@5.4.1 generate --schema /triggerdotdev/internal-packages/database/prisma/schema.prisma
41+ RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpx prisma@5.4.1 generate --schema /triggerdotdev/internal-packages/database/prisma/schema.prisma
4242
4343# # Builder (builds the webapp)
4444FROM base AS builder
You can’t perform that action at this time.
0 commit comments