Skip to content

Commit

Permalink
fix(path): Update Installation.md base docker image build (microsoft#…
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelogboye authored Feb 4, 2024
1 parent 3715a74 commit 5b217c9
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions website/docs/installation/Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ AutoGen now provides updated Dockerfiles tailored for different needs. Building
- **Autogen Basic**: Ideal for general use, this setup includes common Python libraries and essential dependencies. Perfect for those just starting with AutoGen.

```bash
docker build -f .devcontainer/base/Dockerfile -t autogen_base_img https://github.com/microsoft/autogen.git
docker build -f .devcontainer/Dockerfile -t autogen_base_img https://github.com/microsoft/autogen.git
```

- **Autogen Advanced**: Advanced users or those requiring all the things that AutoGen has to offer `autogen_full_img`

```bash
docker build -f .devcontainer/full/Dockerfile -t autogen_full_img https://github.com/microsoft/autogen.git
```
```bash
docker build -f .devcontainer/full/Dockerfile -t autogen_full_img https://github.com/microsoft/autogen.git
```

## Step 3: Run AutoGen Applications from Docker Image

Expand Down Expand Up @@ -62,23 +62,23 @@ Here's how you can run an application built with AutoGen, using the Docker image
docker run -it -p {WorkstationPortNum}:{DockerPortNum} -v {WorkStation_Dir}:{Docker_DIR} {name_of_the_image} {bash/python} {Docker_path_to_script_to_execute}
```

- *Simple Script*: Run a Python script located in your local `myapp` directory.
- _Simple Script_: Run a Python script located in your local `myapp` directory.

```bash
docker run -it -v `pwd`/myapp:/myapp autogen_base_img:latest python /myapp/my_script.py
```
```bash
docker run -it -v `pwd`/myapp:/myapp autogen_base_img:latest python /myapp/my_script.py
```

- *Web Application*: If your application includes a web server running on port 5000.
- _Web Application_: If your application includes a web server running on port 5000.

```bash
docker run -it -p 8080:5000 -v $(pwd)/myapp:/myapp autogen_base_img:latest
```
```bash
docker run -it -p 8080:5000 -v $(pwd)/myapp:/myapp autogen_base_img:latest
```

- *Data Processing*: For tasks that involve processing data stored in a local directory.
- _Data Processing_: For tasks that involve processing data stored in a local directory.

```bash
docker run -it -v $(pwd)/data:/data autogen_base_img:latest python /myapp/process_data.py
```
```bash
docker run -it -v $(pwd)/data:/data autogen_base_img:latest python /myapp/process_data.py
```

## Additional Resources

Expand Down

0 comments on commit 5b217c9

Please sign in to comment.