fix: deploy
Some checks failed
CI - Lint, Typecheck & Test / quality-assurance (push) Failing after 47s

This commit is contained in:
2026-02-10 13:09:55 +01:00
parent 47ca58a85a
commit 4bdd4efdc3
5 changed files with 22740 additions and 5 deletions

View File

@@ -2,13 +2,16 @@ FROM node:20-alpine AS base
# Install dependencies only when needed
FROM base AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat curl
WORKDIR /app
# Install pnpm
RUN npm install -g pnpm@10
# Install dependencies based on the preferred package manager
COPY package.json package-lock.json* ./
RUN --mount=type=cache,target=/root/.npm npm ci --legacy-peer-deps
COPY package.json pnpm-lock.yaml* .npmrc* ./
ARG NPM_TOKEN
RUN --mount=type=cache,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
# Rebuild the source code only when needed
@@ -35,7 +38,7 @@ ENV DIRECTUS_URL=$DIRECTUS_URL
# Validate environment variables during build
RUN SKIP_RUNTIME_ENV_VALIDATION=true npx tsx scripts/validate-env.ts
RUN --mount=type=cache,target=/app/.next/cache npm run build
RUN --mount=type=cache,target=/app/.next/cache pnpm run build
# Production image, copy all the files and run next
FROM base AS runner