Skip to content

Commit 468f4f5

Browse files
eyriehq-bot[bot]Surya
andauthored
fix(docker): add \$PNPM_HOME/bin to PATH in custom Dockerfiles (#47)
Upstream fixed this in Dockerfile.admin/web/space/live via makeplane#9079 but our custom Dockerfile.iw-* variants weren't included in that merge. Same fix: ENV PATH="\$PNPM_HOME:\$PNPM_HOME/bin:\$PATH" Without /bin, corepack-installed pnpm binaries aren't resolvable and pnpm add -g turbo fails with "global bin directory not in PATH". Co-authored-by: Surya <surya@eyriehq.com>
1 parent 4ef2fe4 commit 468f4f5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/admin/Dockerfile.iw-admin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ WORKDIR /app
88

99
ENV TURBO_TELEMETRY_DISABLED=1
1010
ENV PNPM_HOME="/pnpm"
11-
ENV PATH="$PNPM_HOME:$PATH"
11+
ENV PATH="$PNPM_HOME:$PNPM_HOME/bin:$PATH"
1212
ENV CI=1
1313

1414
RUN corepack enable pnpm

apps/space/Dockerfile.iw-space

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ WORKDIR /app
88

99
ENV TURBO_TELEMETRY_DISABLED=1
1010
ENV PNPM_HOME="/pnpm"
11-
ENV PATH="$PNPM_HOME:$PATH"
11+
ENV PATH="$PNPM_HOME:$PNPM_HOME/bin:$PATH"
1212
ENV CI=1
1313

1414
RUN corepack enable pnpm

apps/web/Dockerfile.iw-web

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ FROM node:22-alpine AS base
77

88
# Setup pnpm package manager with corepack and configure global bin directory for caching
99
ENV PNPM_HOME="/pnpm"
10-
ENV PATH="$PNPM_HOME:$PATH"
10+
ENV PATH="$PNPM_HOME:$PNPM_HOME/bin:$PATH"
1111
RUN corepack enable
1212

1313
# *****************************************************************************

0 commit comments

Comments
 (0)