Switch from Infisical to Vault for secret loading
Some checks failed
Build Docker Image / build (push) Failing after 2m52s

This commit is contained in:
Ruslan Bakiev
2026-03-09 11:20:34 +07:00
parent e577b41a86
commit 56a7734e8e
2 changed files with 64 additions and 4 deletions

View File

@@ -11,16 +11,16 @@ RUN npm run build
FROM node:22-alpine
RUN apk add --no-cache curl jq
WORKDIR /app
COPY package.json ./
RUN npm install --omit=dev && npm install @infisical/sdk
RUN npm install --omit=dev
COPY --from=builder /app/dist ./dist
COPY scripts ./scripts
ENV INFISICAL_SECRET_PATHS="/geo,/shared"
EXPOSE 8000
CMD ["sh", "-c", "node scripts/load-secrets.mjs && . ./.env.infisical && node dist/index.js"]
CMD ["sh", "-c", ". /app/scripts/load-vault-env.sh && node dist/index.js"]