🎨 Change npm to pnpm
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -40,10 +40,11 @@ RUN --mount=type=cache,target=/var/cache/apt \
|
||||
# Verify Rust version in builder stage
|
||||
RUN rustc --version && echo "Builder stage Rust version verified"
|
||||
|
||||
# Install Node.js 22.x
|
||||
# Install Node.js 22.x and pnpm
|
||||
RUN --mount=type=cache,target=/var/cache/apt \
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
|
||||
apt-get update && apt-get install -y nodejs
|
||||
apt-get update && apt-get install -y nodejs && \
|
||||
npm install -g pnpm
|
||||
|
||||
# Copy project files
|
||||
COPY . /pake
|
||||
@@ -55,9 +56,9 @@ COPY --from=cargo-builder /cargo-cache/git /usr/local/cargo/git
|
||||
COPY --from=cargo-builder /cargo-cache/registry /usr/local/cargo/registry
|
||||
|
||||
# Install dependencies and build pake-cli
|
||||
RUN --mount=type=cache,target=/root/.npm \
|
||||
npm ci && \
|
||||
npm run cli:build
|
||||
RUN --mount=type=cache,target=/root/.local/share/pnpm \
|
||||
pnpm install --frozen-lockfile && \
|
||||
pnpm run cli:build
|
||||
|
||||
# Set up the entrypoint
|
||||
WORKDIR /output
|
||||
|
||||
Reference in New Issue
Block a user