This repository has no description
606 B
30 lines
1FROM node:22-slim
2
3# Install git and other deps
4RUN apt-get update && apt-get install -y \
5 git \
6 curl \
7 ca-certificates \
8 && rm -rf /var/lib/apt/lists/*
9
10WORKDIR /app
11
12# Install ob (Obsidian headless CLI) globally
13RUN npm install -g obsidian-headless
14
15# Install deps
16COPY package.json ./
17RUN npm install --production
18
19# Copy analysis engine (ARG to bust cache on source changes)
20ARG BUILD_DATE=unknown
21COPY server.ts ./
22COPY analysis.ts ./
23COPY sync.ts ./
24
25# Create data directories
26RUN mkdir -p /data/vault /data/carry
27
28EXPOSE 8080
29
30CMD ["node", "--experimental-strip-types", "server.ts"]