diff --git a/docker/Dockerfile.ui b/docker/Dockerfile.ui index 07c3a1201..549506c3e 100644 --- a/docker/Dockerfile.ui +++ b/docker/Dockerfile.ui @@ -32,9 +32,13 @@ RUN npm run build # Production image, copy all the files and run next FROM base AS runner ARG GIT_COMMIT_HASH=local +ARG KEEP_VERSION=local + WORKDIR /app # Inject the git commit hash into the build +# This is being injected from the build script ENV GIT_COMMIT_HASH=${GIT_COMMIT_HASH} +ENV KEEP_VERSION=${KEEP_VERSION} diff --git a/keep-ui/app/layout.tsx b/keep-ui/app/layout.tsx index 8c4d33114..3a655626e 100644 --- a/keep-ui/app/layout.tsx +++ b/keep-ui/app/layout.tsx @@ -40,6 +40,7 @@ export default async function RootLayout({ children }: RootLayoutProps) { {process.env.GIT_COMMIT_HASH ? (