AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Use python:3-alpine image for code execution (#1192)
rickythefoxbaf31e69e53e
diff --git a/autogpt/commands/execute_code.py b/autogpt/commands/execute_code.pyindex e2a8d994aa..70b33a975c 100644--- a/autogpt/commands/execute_code.py+++ b/autogpt/commands/execute_code.py@@ -40,10 +40,10 @@ def execute_python_file(file: str):try:client = docker.from_env()- # You can replace 'python:3.8' with the desired Python image/version+ # You can replace this with the desired Python image/version# You can find available Python images on Docker Hub:# https://hub.docker.com/_/python- image_name = "python:3.10"+ image_name = "python:3-alpine"try:client.images.get(image_name)print(f"Image '{image_name}' found locally")