# syntax=docker/dockerfile:1 # GODCALL memory-core — drop-in replacement for agentmemory/memory-core. # Matches the upstream image contract exactly: # WORKDIR /app, ENTRYPOINT tini, CMD node --import tsx src/gateway/server.ts # config mounted at /data/config/tdai-gateway.yaml, data volume at /data/tdai-memory # # Build (from repo root): # docker build -t godcall/memory-core:local -f MemoryCore/Dockerfile MemoryCore FROM node:22-slim RUN apt-get update && apt-get install -y --no-install-recommends \ python3 make g++ git ca-certificates tini curl \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY package.json ./ RUN npm install --no-audit --no-fund COPY . . ENV NODE_ENV=production \ TDAI_GATEWAY_CONFIG=/data/config/tdai-gateway.yaml EXPOSE 8420 HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=5 \ CMD curl -sf http://localhost:8420/health || exit 1 ENTRYPOINT ["/usr/bin/tini", "--"] CMD ["node", "--import", "tsx", "src/gateway/server.ts"]