Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Successful in 1m0s
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / 🏗️ Build (push) Has been cancelled
19 lines
380 B
Docker
19 lines
380 B
Docker
FROM node:20-alpine
|
|
|
|
# Install essential build tools if needed (e.g., for node-gyp)
|
|
RUN apk add --no-cache libc6-compat python3 make g++ curl
|
|
|
|
WORKDIR /app
|
|
|
|
# Enable corepack for pnpm
|
|
RUN corepack enable
|
|
|
|
# Pre-set the pnpm store directory
|
|
ENV PNPM_HOME="/pnpm"
|
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
|
|
# Set up pnpm store configuration
|
|
RUN pnpm config set store-dir /pnpm/store
|
|
|
|
EXPOSE 3000
|