From 903fac1005e65de0935c2727b7e322db0dfe5669 Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Sat, 19 Oct 2024 03:18:13 +0800 Subject: [PATCH] misc: added infisical cli to docker and fixed redirect --- Dockerfile.standalone-infisical | 4 ++++ frontend/src/layouts/AppLayout/AppLayout.tsx | 1 + 2 files changed, 5 insertions(+) diff --git a/Dockerfile.standalone-infisical b/Dockerfile.standalone-infisical index 8ffe7e3de..269cbfcf9 100644 --- a/Dockerfile.standalone-infisical +++ b/Dockerfile.standalone-infisical @@ -95,6 +95,10 @@ RUN mkdir frontend-build # Production stage FROM base AS production RUN apk add --upgrade --no-cache ca-certificates +RUN apk add --no-cache bash curl && curl -1sLf \ + 'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.alpine.sh' | bash \ + && apk add infisical=0.31.1 && apk add --no-cache git + RUN addgroup --system --gid 1001 nodejs \ && adduser --system --uid 1001 non-root-user diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx index 09f49652c..312e6af17 100644 --- a/frontend/src/layouts/AppLayout/AppLayout.tsx +++ b/frontend/src/layouts/AppLayout/AppLayout.tsx @@ -230,6 +230,7 @@ export const AppLayout = ({ children }: LayoutProps) => { (!orgs?.map((org) => org.id)?.includes(router.query.id as string) && !router.asPath.includes("project") && !router.asPath.includes("personal") && + !router.asPath.includes("secret-scanning") && !router.asPath.includes("integration"))) ) { router.push(`/org/${currentOrg?.id}/overview`);