From af43a56ef516a30cc3791749aa32e51fc9acd1b8 Mon Sep 17 00:00:00 2001 From: dimitar Date: Mon, 3 Aug 2026 18:38:16 +0200 Subject: [PATCH] docker file fix --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index dc6b5f5..a2f5f70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,16 @@ RUN npm ci FROM base AS builder WORKDIR /app RUN apk add --no-cache openssl +# NEXT_PUBLIC_* vars are inlined into the client bundle at build time. Pass +# them via build args (Coolify: mark them as build variables) or the browser +# ClerkProvider / public URLs will be missing. +ARG NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY +ARG NEXT_PUBLIC_CLERK_SIGN_IN_URL +ARG NEXT_PUBLIC_CLERK_SIGN_UP_URL +ARG NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL +ARG NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL +ARG NEXT_PUBLIC_APP_URL +ARG NEXT_PUBLIC_APP_DOMAIN COPY --from=deps /app/node_modules ./node_modules COPY package.json package-lock.json ./ COPY next.config.ts ./