diff --git a/docker/docker-compose.yml b/docker-compose.yml similarity index 80% rename from docker/docker-compose.yml rename to docker-compose.yml index e0f7ab982f..41fbc3c33c 100644 --- a/docker/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: gpt-engineer: build: context: . - dockerfile: Dockerfile + dockerfile: docker/Dockerfile stdin_open: true tty: true # Set the API key from the .env file @@ -12,7 +12,7 @@ services: - .env ## OR set the API key directly # environment: - # - OPENAI_API_KEY="YOUR_API_KEY_HERE" + # - OPENAI_API_KEY=YOUR_API_KEY image: gpt-engineer volumes: - ./projects/example:/project diff --git a/docker/Dockerfile b/docker/Dockerfile index 98ab2c2ee6..f608dac757 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,7 +1,7 @@ FROM python:3.9-slim RUN apt-get update \ - && apt-get install -y sudo + && apt-get install -y sudo tk tcl WORKDIR /app diff --git a/docker/README.md b/docker/README.md index 0f4d4929f4..d098b4840a 100644 --- a/docker/README.md +++ b/docker/README.md @@ -17,7 +17,7 @@ The `-v` flag mounts the `your-project` folder into the container. Make sure to Building the image: - `git clone https://github.com/AntonOsika/gpt-engineer.git` - `cd gpt-engineer` -- `docker-compose build -f docker/docker-compose.yml` +- `docker-compose -f docker-compose.yml build` - `docker-compose run --rm gpt-engineer`