Closed peter-gy closed 1 year ago
Out of a sudden, RUN npm install -g npm@latest yields the following error when building Dockerfile-dev:
RUN npm install -g npm@latest
Dockerfile-dev
#8 0.282 /bin/sh: 1: npm: not found
This should be fixed. This is also a great occasion to migrate from debian:bookworm-slim to ubuntu:latest as requested in the discussion of #109.
debian:bookworm-slim
ubuntu:latest
Full log:
Building stemmaweb [+] Building 0.9s (9/14) => [internal] load build definition from Dockerfile-dev 0.0s => => transferring dockerfile: 1.14kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 34B 0.0s => [internal] load metadata for docker.io/library/debian:bookw 0.4s => [ 1/10] FROM docker.io/library/debian:bookworm-slim@sha256: 0.0s => [internal] load build context 0.0s => => transferring context: 30.32kB 0.0s => CACHED [ 2/10] RUN apt-get update && apt-get install -y 0.0s => CACHED [ 3/10] RUN update-alternatives --install /usr/bin/p 0.0s => CACHED [ 4/10] RUN apt-get update && apt-get install -y 0.0s => ERROR [ 5/10] RUN npm install -g npm@latest 0.3s ------ > [ 5/10] RUN npm install -g npm@latest: #8 0.282 /bin/sh: 1: npm: not found ------ executor failed running [/bin/sh -c npm install -g npm@latest]: exit code: 127 ERROR: Service 'stemmaweb' failed to build : Build failed make: *** [build-dev] Error 1
Closed by #119
Out of a sudden,
RUN npm install -g npm@latest
yields the following error when buildingDockerfile-dev
:This should be fixed. This is also a great occasion to migrate from
debian:bookworm-slim
toubuntu:latest
as requested in the discussion of #109.Full log: