Browse Source

fix: update Dockerfiles to correct pnpm PATH and streamline turbo installation

Yuki Takei 6 days ago
parent
commit
761e0d6e8f

+ 4 - 3
apps/app/docker/Dockerfile

@@ -16,11 +16,12 @@ WORKDIR $OPT_DIR
 # "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 globally
 # Install turbo globally
-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
 
 
 
 
 ##
 ##

+ 4 - 3
apps/pdf-converter/docker/Dockerfile

@@ -16,11 +16,12 @@ WORKDIR $OPT_DIR
 # "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
 
 
 
 
 
 

+ 4 - 3
apps/slackbot-proxy/docker/Dockerfile

@@ -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