-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (42 loc) · 1.41 KB
/
Dockerfile
File metadata and controls
54 lines (42 loc) · 1.41 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
# Comet Apps Agent Framework
# Multi-role autonomous agent for building software
FROM node:20-alpine
# Install tools
RUN apk add --no-cache git bash curl github-cli jq
# Install Claude Code CLI and Vercel CLI
RUN npm install -g @anthropic-ai/claude-code vercel
# Create directories
RUN mkdir -p /project /agent/roles && \
chown -R node:node /project /agent
WORKDIR /agent
# Copy scripts and roles
COPY --chown=node:node entrypoint.sh /agent/entrypoint.sh
COPY --chown=node:node format-logs.sh /agent/format-logs.sh
COPY --chown=node:node git-workflow.sh /agent/git-workflow.sh
COPY --chown=node:node roles/ /agent/roles/
RUN chmod +x /agent/entrypoint.sh /agent/format-logs.sh /agent/git-workflow.sh
# Switch to non-root user
USER node
# Git config
RUN git config --global user.email "agent@cometapps.ai" && \
git config --global user.name "Comet Agent" && \
git config --global init.defaultBranch main
# Core Environment
ENV ANTHROPIC_API_KEY=""
ENV GITHUB_TOKEN=""
ENV KNOWLEDGE_TEMPLATE=""
ENV BOILERPLATE_REPO=""
ENV PROJECT_NAME=""
ENV AGENT_ROLE="developer"
ENV LOG_FORMAT="pretty"
# Branch Configuration (release workflow)
ENV PROJECT_BRANCH="release/dev"
ENV STAGING_BRANCH="release/stage"
ENV PRODUCTION_BRANCH="release/prod"
ENV AUTO_MERGE_TO_STAGING="false"
# Vercel Configuration
ENV VERCEL_TOKEN=""
ENV VERCEL_TEAM_ID=""
ENV VERCEL_ORG_ID=""
ENV AUTO_SETUP_VERCEL="true"
ENTRYPOINT ["/agent/entrypoint.sh"]