Skip to content

Commit 4609e0d

Browse files
committed
Document root WORKDIR to prevent npx get-pnpm failure
1 parent 52f54bb commit 4609e0d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Dockerfile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ FROM node:lts-alpine AS builder
33
ENV NODE_ENV production
44
ENV PNPM_HOME="/pnpm"
55
ENV PATH="$PNPM_HOME/bin:$PATH"
6+
# Prevent npx get-pnpm EBADDEVENGINES failure from
7+
# devEngines.packageManager in /app/package.json
68
WORKDIR /
79
# Install necessary tools
810
RUN apk add --no-cache libc6-compat yq build-base g++ cairo-dev jpeg-dev pango-dev giflib-dev --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
@@ -23,6 +25,8 @@ FROM node:lts-alpine AS runner
2325
ENV NODE_ENV production
2426
ENV PNPM_HOME="/pnpm"
2527
ENV PATH="$PNPM_HOME/bin:$PATH"
28+
# Prevent npx get-pnpm EBADDEVENGINES failure from
29+
# devEngines.packageManager in /app/package.json
2630
WORKDIR /
2731
# Install necessary tools
2832
RUN apk add bash postgresql cairo pango jpeg musl giflib pixman pangomm libjpeg-turbo freetype

0 commit comments

Comments
 (0)