This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stage 0: Define base image and dependencies caching | |
# This stage installs pnpm and caches global dependencies, leveraging Docker's layer caching. | |
FROM node:20-alpine AS base | |
ENV PNPM_HOME="/pnpm" | |
ENV PATH="$PNPM_HOME:$PATH" | |
RUN corepack enable | |
RUN npm install -g pnpm@latest | |
WORKDIR /app |