-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (36 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
50 lines (36 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# CodeSwarm Docker Image
# Multi-stage build for optimized production image
# Build stage
FROM node:18-alpine AS builder
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install all dependencies (including devDependencies for build)
RUN npm ci
# Copy source code
COPY src/ ./src/
COPY templates/ ./templates/
# Production stage
FROM node:18-alpine AS production
WORKDIR /app
# Install production dependencies only
COPY package*.json ./
RUN npm ci --only=production
# Copy necessary files from builder
COPY --from=builder /app/src/ ./src/
COPY --from=builder /app/templates/ ./templates/
# Create directory for configuration
RUN mkdir -p /app/.mehaisi
# Set environment variables
ENV NODE_ENV=production
ENV CODESWARM_HOME=/app
# Expose no ports (CLI tool)
# Volumes for persistent data
VOLUME ["/app/.mehaisi"]
# Entry point
ENTRYPOINT ["node", "src/codeswarm.js"]
CMD ["--help"]
# Labels
LABEL maintainer="CodeSwarm Team"
LABEL description="Multi-agent AI orchestration system using SONA architecture"
LABEL version="1.0.0"