chartjs-chart-js
SUCCESS
2m 35s
History Source
SummaryIterations1Transcript3Dockerfile
Dockerfile24 lines · 527 chars
# Build Chart.js from source using pnpm

FROM node:18-bullseye

WORKDIR /workspace

# Install pnpm (v8 as required by the project)
RUN npm install -g pnpm@8

# Install dependencies of the monorepo
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./

# Use frozen lockfile to ensure reproducible builds
RUN pnpm install --frozen-lockfile

# Copy the full source code
COPY . .

# Build Chart.js from source
RUN pnpm run build

# Default to a shell so the container can be inspected or serve as a base image
CMD ["/bin/bash"]