Skip to content

Commit bb1d67a

Browse files
committed
Fix missing pnpm command in layered image of Dockerfile
1 parent 86f3d86 commit bb1d67a

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ FROM node:24.14.0-slim AS base
33
# This will be set by the GitHub action to the folder containing this component.
44
ARG FOLDER=/app
55

6-
# Install dependencies only when needed
7-
FROM base AS deps
8-
9-
COPY . /app
10-
WORKDIR ${FOLDER}
11-
126
# Enable corepack
137
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0
148
RUN corepack enable
@@ -20,6 +14,11 @@ ENV CI=true
2014
ENV PNPM_CONFIG_MINIMUM_RELEASE_AGE=0
2115
ENV PNPM_CONFIG_STRICT_DEP_BUILDS=false
2216

17+
# Install dependencies only when needed
18+
FROM base AS deps
19+
COPY . /app
20+
WORKDIR ${FOLDER}
21+
2322
# Install dependencies based on the preferred package manager
2423
RUN \
2524
if [ -f yarn.lock ]; then \

0 commit comments

Comments
 (0)