-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (33 loc) · 1.83 KB
/
Copy pathDockerfile
File metadata and controls
42 lines (33 loc) · 1.83 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
FROM ubuntu:24.04
# Prevent apt/debconf from prompting interactively (e.g., tzdata).
# Without this, debconf reads from stdin and consumes the rest of install.sh
# when piped via `curl ... | bash`.
ENV DEBIAN_FRONTEND=noninteractive
# curl is needed to download install.sh (not pre-installed in ubuntu:24.04)
RUN apt-get update -qq && apt-get install -y -qq curl gnupg && rm -rf /var/lib/apt/lists/*
# Copy the RDE config to disable web IDE components before running install.sh
COPY .config.rde.qovery.yml /tmp/.config.rde.qovery.yml
# Install RDE tooling (Claude Code, OpenCode, Codex, Cursor, proxy, git, jq, etc.)
# The config file disables code-server, the standard entrypoint, and other
# interactive-only components that aren't needed for headless autonomous mode.
# Bump RDE_INSTALL_VERSION to force a fresh install.sh run (cache bust).
ARG RDE_INSTALL_VERSION=3
RUN export RDE_CONFIG=/tmp/.config.rde.qovery.yml && \
curl -fsSL https://rde.qovery.com/install.sh | bash
# Install agent SDKs for programmatic streaming execution
RUN npm install -g @anthropic-ai/claude-agent-sdk @openai/codex-sdk && npm cache clean --force
# Install our autonomous agent scripts + default system prompt.
# Shared (provider-agnostic) helpers live in lib/; each ticket provider has its
# own folder (linear/, jira/) holding agent-run.sh + its API helper.
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
COPY lib/ /usr/local/lib/agent/
COPY linear/ /usr/local/lib/agent/linear/
COPY jira/ /usr/local/lib/agent/jira/
COPY system-prompt.md /usr/local/lib/agent/system-prompt.md
RUN chmod +x /usr/local/bin/entrypoint.sh \
&& chmod +x /usr/local/lib/agent/*.sh /usr/local/lib/agent/*/*.sh
# Create repo clone directory for agent-run.sh
RUN mkdir -p /repos && chown coder:coder /repos
WORKDIR /home/coder/project
EXPOSE 8080
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]