fix docker?
This commit is contained in:
@@ -9,8 +9,8 @@ WORKDIR /app
|
||||
# Install git early for commit hash
|
||||
RUN apk add --no-cache git
|
||||
|
||||
# Install pnpm with cache mount for better performance
|
||||
RUN npm install -g pnpm
|
||||
# Install pnpm properly for Docker
|
||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||
|
||||
# Copy package files for dependency installation
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
@@ -45,6 +45,9 @@ FROM node:20-alpine AS runner
|
||||
# Set working directory inside the container
|
||||
WORKDIR /app
|
||||
|
||||
# Install pnpm in production stage
|
||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||
|
||||
RUN mkdir -p /app/public
|
||||
|
||||
# Copy only necessary files from builder
|
||||
|
||||
Reference in New Issue
Block a user