mirror of
https://github.com/microsoft/autogen.git
synced 2026-01-27 06:48:36 -05:00
* docker documentation * docker doc * clean contribute.md * minor change * Add more detailed description * add docker instructions * more dockerfiles * readme update * latest python * dev docker python version * add version * readme * improve doc * improve doc * path name * naming * Update website/docs/Installation.md Co-authored-by: Chi Wang <wang.chi@microsoft.com> * Update website/docs/Installation.md Co-authored-by: Chi Wang <wang.chi@microsoft.com> * Add suggestion to install colima for Mac users * Update website/docs/Installation.md Co-authored-by: Chi Wang <wang.chi@microsoft.com> * Update website/docs/Installation.md Co-authored-by: olgavrou <olgavrou@gmail.com> * update doc * typo * improve doc * add more options in dev file * contrib * add link to doc * add link * Update website/docs/Installation.md Co-authored-by: Chi Wang <wang.chi@microsoft.com> * Update website/docs/Installation.md Co-authored-by: Chi Wang <wang.chi@microsoft.com> * instruction * Update website/docs/FAQ.md Co-authored-by: Chi Wang <wang.chi@microsoft.com> * FAQ * comment autogen studio --------- Co-authored-by: Yuandong Tian <yuandong@fb.com> Co-authored-by: Chi Wang <wang.chi@microsoft.com> Co-authored-by: olgavrou <olgavrou@gmail.com>
34 lines
1.1 KiB
Docker
34 lines
1.1 KiB
Docker
# basic setup
|
|
FROM python:3.11-slim-bookworm
|
|
RUN apt-get update && apt-get -y update
|
|
RUN apt-get install -y sudo git npm
|
|
|
|
# Setup user to not run as root
|
|
RUN adduser --disabled-password --gecos '' autogen-dev
|
|
RUN adduser autogen-dev sudo
|
|
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
USER autogen-dev
|
|
|
|
# Pull repo
|
|
RUN cd /home/autogen-dev && git clone https://github.com/microsoft/autogen.git
|
|
WORKDIR /home/autogen-dev/autogen
|
|
|
|
# Install autogen in editable mode (Note: extra components can be installed if needed)
|
|
RUN sudo pip install -e .[test,teachable,lmm,retrievechat,mathchat,blendsearch]
|
|
|
|
# Install precommit hooks
|
|
RUN pre-commit install
|
|
|
|
# For docs
|
|
RUN sudo npm install --global yarn
|
|
RUN sudo pip install pydoc-markdown
|
|
RUN cd website
|
|
RUN yarn install --frozen-lockfile --ignore-engines
|
|
|
|
# Pre-load popular packages as per https://learnpython.com/blog/most-popular-python-packages/
|
|
RUN pip install numpy pandas matplotlib seaborn scikit-learn requests urllib3 nltk pillow pytest beautifulsoup4
|
|
|
|
# override default image starting point
|
|
CMD /bin/bash
|
|
ENTRYPOINT []
|