Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,3 @@ Makefile
# Package locks (can be regenerated)
package-lock.json
yarn.lock
pnpm-lock.yaml
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FROM node:lts-alpine AS builder
WORKDIR /app

# Install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
RUN corepack enable && corepack prepare pnpm@10.33.0 --activate

# Copy package and configuration
COPY package.json pnpm-lock.yaml tsconfig.json ./
COPY package.json pnpm-lock.yaml tsconfig.json .npmrc ./

# Copy source code
COPY src ./src
Expand All @@ -19,13 +19,13 @@ FROM node:lts-alpine
WORKDIR /app

# Install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
RUN corepack enable && corepack prepare pnpm@10.33.0 --activate

# Copy built artifacts
COPY --from=builder /app/build ./build

# Copy package.json and lockfile for production install
COPY package.json pnpm-lock.yaml ./
COPY package.json pnpm-lock.yaml .npmrc ./

# Install only production dependencies
RUN pnpm install --prod --frozen-lockfile --ignore-scripts
Expand Down