Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Failing after 2m24s
Build & Deploy / 🏗️ Build (push) Failing after 3m40s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 3s
21 lines
560 B
Docker
21 lines
560 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++
|
|
|
|
WORKDIR /app
|
|
|
|
# Enable corepack for pnpm
|
|
RUN corepack enable
|
|
|
|
# Pre-set the pnpm store directory to a location we can volume-mount
|
|
ENV PNPM_HOME="/pnpm"
|
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
|
|
# Set up pnpm store configuration
|
|
RUN pnpm config set store-dir /pnpm/store
|
|
|
|
# Note: Dependency installation happens at runtime to support linked packages
|
|
# and named volumes, but the base image is now optimized for the stack.
|
|
EXPOSE 3000
|