FROM node:22-slim # Install git and other deps RUN apt-get update && apt-get install -y \ git \ curl \ ca-certificates \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # Install ob (Obsidian CLI) globally RUN npm install -g obsidian-cli # Install deps COPY package.json ./ RUN npm install --production # Copy analysis engine COPY server.ts ./ COPY analysis.ts ./ COPY sync.ts ./ # Create data directories RUN mkdir -p /data/vault /data/carry EXPOSE 8080 CMD ["node", "--experimental-strip-types", "server.ts"]