Open
Description
Describe the bug
I use this library with spotify/[email protected] in a Dockerfile and It works.
However spotify/techdocs released a new version @v1.2.6 and mermaid is not working any longer.
If I use spotify/[email protected], It still works correctly.
To Reproduce
Create a Dockerfile with:
FROM spotify/techdocs:v1.2.6
RUN apk --no-cache add nodejs npm chromium
RUN npm install -g @mermaid-js/mermaid-cli
RUN pip install markdown-inline-mermaid
# Set mermaid-cli envs to link to installed chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
Create the image
docker build . -t my-awesome-mkdocs-previewer-image:1.2.6 -f ./Dockerfile
Expected behavior
Create the image. No errors.
Screenshots
[+] Building 1.4s (7/8) docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 441B 0.0s
=> [internal] load metadata for docker.io/spotify/techdocs:v1.2.6 1.1s
=> [auth] spotify/techdocs:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [1/4] FROM docker.io/spotify/techdocs:v1.2.6@sha256:9a8cd377329cc0e33c3b99c599c5ad7a9d5f8aa2da46b812a9ee043abfef7416 0.0s
=> => resolve docker.io/spotify/techdocs:v1.2.6@sha256:9a8cd377329cc0e33c3b99c599c5ad7a9d5f8aa2da46b812a9ee043abfef7416 0.0s
=> CACHED [2/4] RUN apk --no-cache add nodejs npm chromium 0.0s
=> ERROR [3/4] RUN npm install -g @mermaid-js/mermaid-cli 0.2s
------
> [3/4] RUN npm install -g @mermaid-js/mermaid-cli:
0.155 Error relocating /usr/bin/node: sqlite3session_attach: symbol not found
0.156 Error relocating /usr/bin/node: sqlite3changeset_apply: symbol not found
0.158 Error relocating /usr/bin/node: sqlite3session_create: symbol not found
0.159 Error relocating /usr/bin/node: sqlite3session_changeset: symbol not found
0.162 Error relocating /usr/bin/node: sqlite3session_patchset: symbol not found
0.164 Error relocating /usr/bin/node: sqlite3session_delete: symbol not found
------
Dockerfile:6
--------------------
4 |
5 | # RUN npm install -g @mermaid-js/[email protected]
6 | >>> RUN npm install -g @mermaid-js/mermaid-cli
7 |
8 | # RUN pip install markdown-inline-mermaid==1.0.2
--------------------
ERROR: failed to solve: process "/bin/sh -c npm install -g @mermaid-js/mermaid-cli" did not complete successfully: exit code: 127
View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/qxezm4ox63nbaze5p68qmuwv1
Desktop (please complete the following information):
- OS: Mac OS Sequoia 15.3.1, Apple M2
- Docker: Docker version 27.5.1, build 9f9e405
Metadata
Metadata
Assignees
Labels
No labels
Activity