fix: update pnpm install commands to include only-built-dependencies option
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@ RUN npm config set registry ${NPM_REGISTRY} \
|
||||
FROM base AS build
|
||||
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
RUN pnpm install --frozen-lockfile --config.only-built-dependencies="*"
|
||||
|
||||
COPY . .
|
||||
ENV PRISMA_CLIENT_ENGINE_TYPE=binary
|
||||
@@ -24,7 +24,7 @@ RUN pnpm run build
|
||||
FROM base AS prod-deps
|
||||
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN pnpm install --prod --frozen-lockfile \
|
||||
RUN pnpm install --prod --frozen-lockfile --config.only-built-dependencies="*" \
|
||||
&& pnpm store prune \
|
||||
&& rm -rf /root/.npm /root/.cache
|
||||
|
||||
|
||||
Reference in New Issue
Block a user