You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which image/versions are related to this issue/feature request?
cgr.dev/chainguard/node:latest-dev
Issue/Feature description
This issue is solved and is a reference to anyone looking to do the same. I understand why pnpm isn't included by default although it would be nice... but you'll get requests for yarn etc.
Referencing the docker init setup to run node with pnpm the generated Dockerfile had to be altered to work with chaingaurd:
# Install pnpm; requires changing the global npm installation directory and explicitly setting the uid and gid.RUN --mount=type=cache,target=/home/node/.npm,uid=65532,gid=65532 \
npm config set prefix /home/node/.npm \
&& npm install -g pnpm@${PNPM_VERSION}
ENV PATH=/home/node/.npm/bin:$PATH
# Download dependencies as a separate step to take advantage of Docker's caching.# Leverage cache mounts to /home/node/.npm and /home/node/.local/share/pnpm/store to speed up subsequent builds.# Leverage bind mounts to package.json and pnpm-lock.yaml to avoid having to copy them into this layer.RUN --mount=type=bind,source=package.json,target=package.json \
--mount=type=bind,source=pnpm-lock.yaml,target=pnpm-lock.yaml \
--mount=type=cache,target=/home/node/.npm,uid=65532,gid=65532 \
--mount=type=cache,target=/home/node/.local/share/pnpm/store,uid=65532,gid=65532 \
pnpm install --prod --frozen-lockfile
The text was updated successfully, but these errors were encountered:
Which image/versions are related to this issue/feature request?
Issue/Feature description
This issue is solved and is a reference to anyone looking to do the same. I understand why pnpm isn't included by default although it would be nice... but you'll get requests for yarn etc.
Referencing the
docker init
setup to run node with pnpm the generated Dockerfile had to be altered to work with chaingaurd:The text was updated successfully, but these errors were encountered: