mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-24 01:14:22 +01:00
commands, git on docker
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
# Use an official Python base image from the Docker Hub
|
# Use an official Python base image from the Docker Hub
|
||||||
FROM python:3.11-slim
|
FROM python:3.11-slim
|
||||||
|
|
||||||
|
# Install git
|
||||||
|
RUN apt-get -y update
|
||||||
|
RUN apt-get -y install git
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV PIP_NO_CACHE_DIR=yes \
|
ENV PIP_NO_CACHE_DIR=yes \
|
||||||
PYTHONUNBUFFERED=1 \
|
PYTHONUNBUFFERED=1 \
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ def execute_command(command_name, arguments):
|
|||||||
elif command_name == "get_hyperlinks":
|
elif command_name == "get_hyperlinks":
|
||||||
return get_hyperlinks(arguments["url"])
|
return get_hyperlinks(arguments["url"])
|
||||||
elif command_name == "clone_repository":
|
elif command_name == "clone_repository":
|
||||||
return clone_repository(arguments["repo_url"], arguments["clone_path"])
|
return clone_repository(arguments["repository_url"], arguments["clone_path"])
|
||||||
elif command_name == "read_file":
|
elif command_name == "read_file":
|
||||||
return read_file(arguments["file"])
|
return read_file(arguments["file"])
|
||||||
elif command_name == "write_to_file":
|
elif command_name == "write_to_file":
|
||||||
|
|||||||
Reference in New Issue
Block a user