Switch from Infisical to Vault for secret loading
Some checks failed
Build Docker Image / build (push) Failing after 4m11s
Some checks failed
Build Docker Image / build (push) Failing after 4m11s
This commit is contained in:
@@ -14,18 +14,18 @@ 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/node_modules/.prisma ./node_modules/.prisma
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY prisma ./prisma
|
||||
COPY scripts ./scripts
|
||||
|
||||
ENV INFISICAL_SECRET_PATHS="/exchange,/shared"
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["sh", "-c", "node scripts/load-secrets.mjs && . ./.env.infisical && npx prisma migrate resolve --applied 0_init 2>/dev/null; npx prisma migrate deploy && node dist/index.js"]
|
||||
CMD ["sh", "-c", ". /app/scripts/load-vault-env.sh && npx prisma migrate resolve --applied 0_init 2>/dev/null; npx prisma migrate deploy && node dist/index.js"]
|
||||
|
||||
Reference in New Issue
Block a user