wetalk/api/Dockerfile
ordinarthur f2227bc945
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 41s
fix: switch API from Bun to Node.js (Bun OOMKilled in K8s)
2026-04-13 11:53:55 +02:00

9 lines
240 B
Docker

FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3001
HEALTHCHECK --interval=30s --timeout=3s CMD wget -q --spider http://localhost:3001/health || exit 1
CMD ["node", "--import", "tsx", "src/index.ts"]