Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Add nodejs to swe-agent-run container (#396)

Kilian Lieret8e24956120f3
diff --git a/Dockerfile b/Dockerfile
index fd8eaef6..3c11c739 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,6 +3,12 @@ FROM python:3.9
# Set the working directory
WORKDIR /app
+# Install nodejs
+RUN apt update && \
+ apt install -y nodejs npm && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists/*
+
# Install Docker CLI using the official Docker installation script
RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
sh get-docker.sh