tla / stemmaweb

Catalyst interface and online tools for stemmatology research
13 stars 9 forks source link

Fix `npm` installation in `Dockerfile-dev` #118

Closed peter-gy closed 1 year ago

peter-gy commented 1 year ago

Out of a sudden, RUN npm install -g npm@latest yields the following error when building 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.

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
peter-gy commented 1 year ago

Closed by #119