├── requirements.txt ├── dockerfile └── readme.md /requirements.txt: -------------------------------------------------------------------------------- 1 | pydantic 2 | fastapi 3 | typer 4 | uvicorn 5 | arxiv 6 | pyautogen==0.2.0 7 | autogenstudio==0.0.18a -------------------------------------------------------------------------------- /dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3.10-slim 2 | 3 | # Copy application files and install dependencies 4 | COPY . /app 5 | RUN pip install --upgrade pip 6 | WORKDIR /app 7 | RUN pip install -r requirements.txt && pip install autogenstudio 8 | 9 | # Set the path 10 | ENV PATH="/home/app/.local/bin:${PATH}" 11 | 12 | # set python path 13 | ENV PYTHONPATH="/home/app/.local/bin:/app:${PYTHONPATH}" 14 | 15 | # add autogenstudio to the PATH 16 | ENV OPENAI_API_KEY="your-key-here" 17 | 18 | RUN autogenstudio version 19 | 20 | EXPOSE 8081 21 | 22 | ENTRYPOINT [ "autogenstudio", "ui", "--host", "0.0.0.0", "--port", "8081"] 23 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | 2 | A docker container for autogen-stuido is now available as standard, this repo is no longer required see [AutoGen samples](https://github.com/microsoft/autogen/tree/main/samples/apps/autogen-studio) 3 | 4 | # Autogen Studio Docker Image 5 | 6 | This repository contains a dockerfile which can be used to build a docker image for the Autogen Studio. The docker image can be used to run the Autogen Studio in a docker container. 7 | 8 | ## Building the docker image 9 | 10 | To build the docker image, run the following command in the root of this repository: 11 | 12 | ```bash 13 | docker build -t autogenstudio . 14 | ``` 15 | 16 | ## Running the docker image 17 | 18 | To run the docker image, run the following command: 19 | 20 | ```bash 21 | docker run -it --rm -p 8081:8081 -e "OPENAI_API_KEY=your_openai_api_key" autogenstudio 22 | ``` 23 | 24 | The Autogen Studio will be available at http://localhost:8081. 25 | --------------------------------------------------------------------------------