diff --git a/Dockerfile b/Dockerfile index 88570c5..579db20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,14 @@ COPY . . # Build Next.js application ENV NODE_ENV production ENV NEXT_TELEMETRY_DISABLED 1 + +# Define NEXT_PUBLIC variables explicitly for build time +ENV NEXT_PUBLIC_API_URL=https://api.lions.dev/btpxpress +ENV NEXT_PUBLIC_KEYCLOAK_URL=https://security.lions.dev +ENV NEXT_PUBLIC_KEYCLOAK_REALM=btpxpress +ENV NEXT_PUBLIC_KEYCLOAK_CLIENT_ID=btpxpress-frontend +ENV NEXT_PUBLIC_APP_ENV=production + RUN npm run build ## Stage 3: Production image