fix: switch Dockerfile from pnpm to npm
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Project uses npm (package-lock.json), but Dockerfile was configured for pnpm causing frozen-lockfile errors in CI builds. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ec0b89206f
commit
ea0d775163
@ -6,20 +6,17 @@ WORKDIR /app
|
|||||||
ARG NEXT_PUBLIC_ASSET_BASE_URL=https://storage.googleapis.com/orchard9-assets/research-notes
|
ARG NEXT_PUBLIC_ASSET_BASE_URL=https://storage.googleapis.com/orchard9-assets/research-notes
|
||||||
ENV NEXT_PUBLIC_ASSET_BASE_URL=$NEXT_PUBLIC_ASSET_BASE_URL
|
ENV NEXT_PUBLIC_ASSET_BASE_URL=$NEXT_PUBLIC_ASSET_BASE_URL
|
||||||
|
|
||||||
# Install pnpm
|
|
||||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
|
||||||
|
|
||||||
# Copy package files
|
# Copy package files
|
||||||
COPY blog/package.json blog/pnpm-lock.yaml ./
|
COPY blog/package.json blog/package-lock.json ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pnpm install --frozen-lockfile
|
RUN npm ci
|
||||||
|
|
||||||
# Copy source
|
# Copy source
|
||||||
COPY blog/ .
|
COPY blog/ .
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
RUN pnpm build
|
RUN npm run build
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM node:20-alpine AS runner
|
FROM node:20-alpine AS runner
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user