-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a29852
commit cd57a92
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM ubuntu:20.04 | ||
|
||
WORKDIR /auto-pytorch | ||
|
||
# install linux packages | ||
RUN apt-get update | ||
|
||
# Set the locale | ||
# workaround for https://github.com/automl/auto-sklearn/issues/867 | ||
RUN apt-get -y install locales | ||
RUN touch /usr/share/locale/locale.alias | ||
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
# set environment variables to only use one core | ||
RUN export OPENBLAS_NUM_THREADS=1 | ||
RUN export MKL_NUM_THREADS=1 | ||
RUN export BLAS_NUM_THREADS=1 | ||
RUN export OMP_NUM_THREADS=1 | ||
|
||
# install build requirements | ||
RUN apt install -y python3-dev python3-pip | ||
RUN pip3 install --upgrade setuptools | ||
RUN apt install -y build-essential | ||
|
||
RUN apt install -y swig | ||
|
||
# Copy the checkout auto-pytorch version for installation | ||
ADD . /auto-pytorch/ | ||
|
||
# Upgrade pip then install dependencies | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install pytest==4.6.* pep8 codecov pytest-cov flake8 flaky openml | ||
RUN cat /auto-pytorch/requirements.txt | xargs -n 1 -L 1 pip3 install | ||
RUN pip3 install jupyter | ||
|
||
# Install | ||
RUN pip3 install /auto-pytorch/ |