diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3acf83e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.10-slim + +ENV APP_HOME / +WORKDIR $APP_HOME + +COPY requirements.txt requirements.txt +RUN pip3 install --no-cache-dir -r requirements.txt + + +ENTRYPOINT ["python", "app/run.py"] + + diff --git a/README.md b/README.md index 1faa447..16f8206 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,12 @@ Edit `run.py` to set your `purpose` and the `directory` of the target applicatio Let it run free! `python run.py` +# To run with docker + +build your dockers with: `docker-compose build` + +run it with `docker-compose up` + ## How does it work? Its basically a small state machine. Each state performs some action and returns its desired next state diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b4b7de7 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: "3.9" +services: + ai: + build: . + tty: true + volumes: + - ./:/app + environment: + - OPENAI_API_KEY=${OPENAI_API_KEY}