mirror of
https://github.com/microsoft/autogen.git
synced 2026-01-08 13:10:03 +00:00
* config in result * value can be float * pytorch notebook example * docker, pre-commit * max_failure (#192); early_stop * extend starting_points (#196) Co-authored-by: Chi Wang (MSR) <wang.chi@microsoft.com> Co-authored-by: Qingyun Wu <qw2ky@virginia.edu>
24 lines
626 B
Docker
24 lines
626 B
Docker
# basic setup
|
|
FROM python:3.7
|
|
RUN apt-get update && apt-get -y update
|
|
RUN apt-get install -y sudo git
|
|
|
|
# Setup user to not run as root
|
|
RUN adduser --disabled-password --gecos '' hb-dev
|
|
RUN adduser hb-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
|
|
|
|
# override default image starting point
|
|
CMD /bin/bash
|
|
ENTRYPOINT [] |