mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-15 15:10:01 +02:00
fix missing pnpm deps in Dockerfile
This commit is contained in:
@@ -5,6 +5,9 @@ WORKDIR /app
|
|||||||
# Copy package.json first to cache node_modules
|
# Copy package.json first to cache node_modules
|
||||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .
|
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .
|
||||||
|
|
||||||
|
# Match packageManager in package.json (pnpm is not bundled in the Node image)
|
||||||
|
RUN corepack enable && corepack prepare pnpm@11.5.2 --activate
|
||||||
|
|
||||||
RUN pnpm install
|
RUN pnpm install
|
||||||
|
|
||||||
# Copy code and build with cached modules
|
# Copy code and build with cached modules
|
||||||
|
|||||||
Reference in New Issue
Block a user