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]

Containerize application (#81)

Kilian Lieretacdab0eb9b75
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..23f6e2c6
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,16 @@
+FROM python:3.9
+
+# Set the working directory
+WORKDIR /app
+
+# Install Python dependencies
+RUN pip install anthropic config datasets docker gymnasium numpy openai pandas rich ruamel.yaml swebench tenacity unidiff simple-parsing together ollama
+
+# Install Docker CLI using the official Docker installation script
+RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
+ sh get-docker.sh
+
+# Copy the application code
+# Do this last to take advantage of the docker layer mechanism
+COPY . /app
+