-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
83 lines (66 loc) · 2.53 KB
/
Copy pathDockerfile
File metadata and controls
83 lines (66 loc) · 2.53 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Multi-stage build for UitKit knowledge system
# Stage 1: Build stage
FROM node:20-alpine AS builder
WORKDIR /app
# Install build dependencies
RUN apk add --no-cache git python3 make g++
# Copy package files
COPY package*.json ./
COPY .npmrc* ./
# Install dependencies
RUN npm ci --only=production
# Copy source code
COPY . .
# Build all distributions
RUN npm run build-index && \
npm run build-plugins && \
npm run build-catalog || true
# Run validation
RUN npm run validate || true
# Stage 2: Runtime stage
FROM node:20-alpine
WORKDIR /app
LABEL org.opencontainers.image.title="UitKit"
LABEL org.opencontainers.image.description="The Claude Code knowledge system - skills, agents, hooks, workflows, and more"
LABEL org.opencontainers.image.source="https://github.com/UitbreidenOS/UitKit"
LABEL org.opencontainers.image.documentation="https://github.com/UitbreidenOS/UitKit#readme"
# Install runtime dependencies
RUN apk add --no-cache git curl
# Copy built artifacts from builder
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/scripts ./scripts
COPY --from=builder /app/skills ./skills
COPY --from=builder /app/agents ./agents
COPY --from=builder /app/hooks ./hooks
COPY --from=builder /app/rules ./rules
COPY --from=builder /app/workflows ./workflows
COPY --from=builder /app/prompts ./prompts
COPY --from=builder /app/mcp ./mcp
COPY --from=builder /app/guides ./guides
COPY --from=builder /app/structures ./structures
COPY --from=builder /app/professional-stacks ./professional-stacks
COPY --from=builder /app/compatibility ./compatibility
COPY --from=builder /app/claude-md-examples ./claude-md-examples
COPY --from=builder /app/plugins ./plugins
COPY --from=builder /app/commands ./commands
COPY --from=builder /app/personas ./personas
COPY --from=builder /app/output-styles ./output-styles
COPY --from=builder /app/statuslines ./statuslines
COPY --from=builder /app/themes ./themes
COPY --from=builder /app/keybindings ./keybindings
COPY --from=builder /app/settings-templates ./settings-templates
COPY --from=builder /app/routines ./routines
COPY --from=builder /app/examples ./examples
COPY --from=builder /app/.claude-plugin ./.claude-plugin
COPY --from=builder /app/*.md ./
COPY --from=builder /app/index.json ./
# Set NODE_ENV
ENV NODE_ENV=production
# Expose default ports
EXPOSE 3000 8080
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD node -e "console.log('OK')" || exit 1
# Default command
CMD ["node", "scripts/cli.js", "list"]