mirror of
				https://github.com/microsoft/autogen.git
				synced 2025-10-31 17:59:50 +00:00 
			
		
		
		
	 efd85b4c86
			
		
	
	
		efd85b4c86
		
			
		
	
	
	
	
		
			
			A new documentation website. And: * add actions for doc * update docstr * installation instructions for doc dev * unify README and Getting Started * rename notebook * doc about best_model_for_estimator #340 * docstr for keep_search_state #340 * DNN Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu> Co-authored-by: Z.sk <shaokunzhang@psu.edu>
		
			
				
	
	
		
			31 lines
		
	
	
		
			760 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			760 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # basic setup
 | |
| FROM python:3.7
 | |
| 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 '' flaml-dev
 | |
| RUN adduser flaml-dev sudo
 | |
| RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
 | |
| USER flaml-dev
 | |
| 
 | |
| # Pull repo
 | |
| RUN cd /home/flaml-dev && git clone https://github.com/microsoft/FLAML.git
 | |
| WORKDIR /home/flaml-dev/FLAML
 | |
| 
 | |
| # Install FLAML (Note: extra components can be installed if needed)
 | |
| RUN sudo pip install -e .[test,notebook]
 | |
| 
 | |
| # Install precommit hooks
 | |
| RUN pre-commit install
 | |
| 
 | |
| # For docs
 | |
| RUN npm install --global yarn
 | |
| RUN pip install pydoc-markdown
 | |
| RUN cd website
 | |
| RUN yarn install --frozen-lockfile
 | |
| 
 | |
| # override default image starting point
 | |
| CMD /bin/bash
 | |
| ENTRYPOINT []
 |