Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Minimal Dockerfile for Soulfield API (Node backend)
FROM node:20-alpine AS base

ENV NODE_ENV=production
WORKDIR /app

# Install dependencies first (better layer caching)
COPY package.json package-lock.json ./
RUN npm ci --only=production

# Copy source
COPY . .

# Expose API and MCP ports
EXPOSE 8790 8791

# Default command runs the API server. Use compose to run MCP.
CMD ["node", "backend/index.cjs"]

26 changes: 26 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: "3.9"
services:
api:
build: .
image: soulfield-api:local
env_file:
- .env
environment:
# Allow offline runs if keys aren’t set
- DEV_NO_API=${DEV_NO_API:-1}
- PORT=8790
ports:
- "8790:8790"
command: ["node", "backend/index.cjs"]
restart: unless-stopped

mcp:
build: .
image: soulfield-api:local
depends_on:
- api
ports:
- "8791:8791"
command: ["node", "backend/mcp-server.cjs"]
restart: unless-stopped