From 946056c729a2fdff7ffaae4caa968e6804db139d Mon Sep 17 00:00:00 2001 From: Somkiat Puisungnoen Date: Wed, 13 Mar 2024 02:26:22 +0700 Subject: [PATCH] Fix :: build docker image with /bin/sh: pnpm: not found (#399) --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 771b0a52483..36e0bf028af 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