Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

Fix :: build docker image with /bin/sh: pnpm: not found (#399)

Somkiat Puisungnoen946056c729a2
diff --git a/Dockerfile b/Dockerfile
index 771b0a52..36e0bf02 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,9 @@
# Builder
FROM node:18-alpine as builder
+# Reference :: https://pnpm.io/docker
+ENV PNPM_HOME="/pnpm"
+ENV PATH="$PNPM_HOME:$PATH"
+RUN corepack enable
WORKDIR /src
# Cache dependencies first