From 2334ab721915add4a284aeb67591d582a443ef25 Mon Sep 17 00:00:00 2001 From: up1 Date: Tue, 12 Mar 2024 21:46:42 +0700 Subject: [PATCH] Fix :: build docker image with /bin/sh: pnpm: not found --- 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