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
8 changes: 8 additions & 0 deletions docker/agent-sandbox/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,11 @@ ENV DISABLE_AUTOUPDATER=1
# same image — the actual agent container never runs iptables itself and
# holds no networking capabilities at all.
WORKDIR /workspace

# The node base image's entrypoint runs any command it can't find as a Node
# script, so a misspelled agent (`-- claude.`) failed with "Cannot find
# module '/workspace/claude.'". Every command this image runs is a real
# executable (the agent, the netns holder's `sleep`, `agent docker shell`'s
# bash), so run them directly: a typo now fails with Docker's own
# "executable file not found in $PATH".
ENTRYPOINT []
7 changes: 7 additions & 0 deletions src/handlers/run/docker_sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,13 @@ mod tests {
assert!(SANDBOX_DOCKERFILE.contains("FROM"));
}

#[test]
fn sandbox_dockerfile_clears_the_node_base_entrypoint() {
assert!(SANDBOX_DOCKERFILE
.lines()
.any(|line| line.trim() == "ENTRYPOINT []"));
}

#[test]
fn agent_image_source_defaults_when_neither_field_is_set() {
assert_eq!(
Expand Down
Loading