fix: build

This commit is contained in:
2026-02-16 21:06:06 +01:00
parent 4b41ba1c27
commit 8d9a82d5e4
2 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
# Stage 1: Builder
FROM registry.infra.mintel.me/mintel/nextjs:v1.7.10 AS builder
FROM registry.infra.mintel.me/mintel/nextjs:v1.7.10 AS base
WORKDIR /app
# Arguments for build-time configuration
@@ -35,12 +35,14 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
COPY . .
# Stage 2: Development (Hot-Reloading)
FROM builder AS development
FROM base AS development
ENV NODE_ENV=development
CMD ["pnpm", "dev:local"]
# Build application
# RUN pnpm build
# Stage 3: Builder (Production)
FROM base AS builder
RUN pnpm build
# Stage 3: Runner
FROM registry.infra.mintel.me/mintel/runtime:v1.7.10 AS runner