You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 795 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
4 years ago
123456789101112131415161718192021222324252627282930
  1. # basic setup
  2. FROM python:3.10
  3. RUN apt-get update && apt-get -y update
  4. RUN apt-get install -y sudo git npm
  5. # Setup user to not run as root
  6. RUN adduser --disabled-password --gecos '' autogen-dev
  7. RUN adduser autogen-dev sudo
  8. RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
  9. USER autogen-dev
  10. # Pull repo
  11. RUN cd /home/autogen-dev && git clone https://github.com/microsoft/autogen.git
  12. WORKDIR /home/autogen-dev/autogen
  13. # Install autogen (Note: extra components can be installed if needed)
  14. RUN sudo pip install -e .[test]
  15. # Install precommit hooks
  16. RUN pre-commit install
  17. # For docs
  18. RUN sudo npm install --global yarn
  19. RUN sudo pip install pydoc-markdown
  20. RUN cd website
  21. RUN yarn install --frozen-lockfile --ignore-engines
  22. # override default image starting point
  23. CMD /bin/bash
  24. ENTRYPOINT []