File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ FROM oven/bun:1 AS builder
44WORKDIR /app
55
66# Copy workspace manifests first for layer caching
7- COPY package.json bun.lock ./
7+ COPY package.json bun.lock tsconfig.json ./
88COPY packages/compactor/package.json ./packages/compactor/
99COPY packages/config/package.json ./packages/config/
1010COPY packages/core/package.json ./packages/core/
@@ -61,8 +61,11 @@ EXPOSE 3000
6161
6262# Health check against the API server
6363HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
64- CMD bun -e "fetch('http://localhost:3000/api/health').then(r=>{if(!r.ok)throw 1}).catch(()=>process.exit(1))"
64+ CMD bun -e "fetch('http://localhost:'+(process.env.PORT|| 3000)+' /api/health').then(r=>{if(!r.ok)throw 1}).catch(()=>process.exit(1))"
6565
6666ENV NODE_ENV=production
6767
68+ # The app handles SIGINT for graceful shutdown (not SIGTERM)
69+ STOPSIGNAL SIGINT
70+
6871ENTRYPOINT ["bun" , "run" , "start" ]
You can’t perform that action at this time.
0 commit comments