Switch from Infisical to Vault for secret loading
All checks were successful
Build Docker Image / build (push) Successful in 2m43s

This commit is contained in:
Ruslan Bakiev
2026-03-09 11:20:29 +07:00
parent 6898c482ca
commit 4c13189fe4
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="/orders,/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"]