fix docker?

This commit is contained in:
g
2026-01-11 07:48:01 +00:00
parent db757d0107
commit 2477e9bb0f
7 changed files with 41 additions and 120 deletions

View File

@@ -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