Skip to content

Commit

Permalink
Fix :: build docker image with /bin/sh: pnpm: not found (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
up1 authored Mar 12, 2024
1 parent 5e2657d commit 946056c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 946056c

Please sign in to comment.