Files
orders/Dockerfile
Ruslan Bakiev 4c13189fe4
All checks were successful
Build Docker Image / build (push) Successful in 2m43s
Switch from Infisical to Vault for secret loading
2026-03-09 11:20:29 +07:00

27 lines
405 B
Docker

FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json ./
RUN npm install
COPY tsconfig.json ./
COPY src ./src
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
COPY --from=builder /app/dist ./dist
COPY scripts ./scripts
EXPOSE 8000
CMD ["sh", "-c", ". /app/scripts/load-vault-env.sh && node dist/index.js"]