0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

docker build のログを見たい

0
Posted at

docker build 時に

どのバージョン使っとんねんってなった

Dockerfile
FROM node:24

ENV PATH=/root/.local/share/pnpm:$PATH
RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash - && pnpm --version

WORKDIR /usr/src/app
COPY package.json pnpm-lock.yaml ./
RUN pnpm install && pnpm --version
package.json
{
  "packageManager": "pnpm@9.4.0"
}
$ docker build --progress=plain --no-cache . 2>&1 |grep -E '\d \d+\.\d+\.\d+'
#6 3.335 10.28.2
#9 2.916 9.4.0

Refs

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?