autogen/Dockerfile

25 lines
633 B
Docker
Raw Normal View History

# 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
2021-11-03 03:24:43 +08:00
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
# override default image starting point
CMD /bin/bash
2021-11-03 03:24:43 +08:00
ENTRYPOINT []