mirror of
https://github.com/microsoft/autogen.git
synced 2026-01-27 09:58:04 -05:00
* Create studio subfolder in devcontainer * Update to follow readme instructions * Move dockerfiles from samples to .devcontainer * Fix typo in file name * Update readme * update doc * Remove base dockerfile and update readme --------- Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu> Co-authored-by: Davor Runje <davor@airt.ai>
43 lines
1.2 KiB
Docker
43 lines
1.2 KiB
Docker
# Basic setup
|
|
FROM python:3.11-slim-bookworm
|
|
|
|
# Update and install necessary packages
|
|
RUN apt-get update && apt-get -y update
|
|
# added vim and nano for convenience
|
|
RUN apt-get install -y sudo git npm vim nano curl
|
|
|
|
# Setup a non-root user 'autogen' with sudo access
|
|
RUN adduser --disabled-password --gecos '' autogen
|
|
RUN adduser autogen sudo
|
|
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
USER autogen
|
|
WORKDIR /home/autogen
|
|
|
|
# Set environment variable
|
|
# ENV OPENAI_API_KEY="{OpenAI-API-Key}"
|
|
|
|
# Clone the AutoGen repository
|
|
RUN git clone https://github.com/microsoft/autogen.git /home/autogen/autogen
|
|
WORKDIR /home/autogen/autogen
|
|
|
|
# Install AutoGen in editable mode with extra components
|
|
RUN sudo pip install -e .[test,teachable,lmm,retrievechat,mathchat,blendsearch]
|
|
|
|
# Install pre-commit hooks
|
|
RUN pre-commit install
|
|
|
|
# Setup Docusaurus and Yarn for the documentation website
|
|
RUN sudo npm install --global yarn
|
|
RUN sudo pip install pydoc-markdown
|
|
RUN cd website
|
|
RUN yarn install --frozen-lockfile --ignore-engines
|
|
|
|
# Exposes the Yarn port for Docusaurus
|
|
EXPOSE 3000
|
|
|
|
# Pre-load popular Python packages
|
|
RUN pip install numpy pandas matplotlib seaborn scikit-learn requests urllib3 nltk pillow pytest beautifulsoup4
|
|
|
|
# Set the default command to bash
|
|
CMD ["/bin/bash"]
|