|
@@ -15,11 +15,12 @@ WORKDIR ${optDir}
|
|
|
# "packageManager" field is used (avoids drift between Dockerfile and local/CI).
|
|
# "packageManager" field is used (avoids drift between Dockerfile and local/CI).
|
|
|
RUN corepack enable
|
|
RUN corepack enable
|
|
|
ENV PNPM_HOME="/pnpm"
|
|
ENV PNPM_HOME="/pnpm"
|
|
|
-ENV PATH="$PNPM_HOME:$PATH"
|
|
|
|
|
|
|
+ENV PATH="$PNPM_HOME/bin:$PATH"
|
|
|
|
|
|
|
|
# install turbo
|
|
# install turbo
|
|
|
-RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
|
|
|
|
- pnpm add turbo --global
|
|
|
|
|
|
|
+# Note: no cache mount here — pnpm global install links binaries into the store,
|
|
|
|
|
+# and the BuildKit cache mount would be unmounted after RUN, breaking those links.
|
|
|
|
|
+RUN pnpm add turbo --global
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|