| 1234567891011121314151617181920 |
- # BizGaze Support — server image
- # Node 24 ships node:sqlite as a stable built-in (no flag), which db.js relies on.
- FROM node:24-alpine
-
- ENV NODE_ENV=production
- WORKDIR /app/server
-
- # Install deps first for layer caching (only `ws`, plus optional nodemailer)
- COPY server/package*.json ./
- RUN npm install --omit=dev --no-audit --no-fund
-
- # App source
- COPY server/ ./
-
- # Served HTTP port (NPM terminates TLS and proxies here). DB lives on a volume.
- ENV PORT=8090
- ENV DB_PATH=/data/data.db
- EXPOSE 8090
-
- CMD ["node", "server.js"]
|