-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (31 loc) · 1.37 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ARG baseimage
FROM ${baseimage}
# nvcr.io/nvidia/pytorch:21.03-py3 -- for GPU
# python:3.9-slim -- for CPU
ENV DEBIAN_FRONTEND noninteractive
WORKDIR /app/
COPY ./requirements.txt .
COPY ./setup.sh /app/setup.sh
COPY ./NASLib/ /app/NASLib/
COPY ./HPOBench/ /app/HPOBench/
COPY ./jahs_bench_201/ /app/jahs_bench_201/
COPY ./ConfigSpace/ /app/ConfigSpace/
RUN echo
RUN apt-get update && apt-get install -y tmux && apt-get install -y git && apt-get install -y build-essential && apt-get install -y liblapack-dev && apt-get install -y gfortran && apt-get install -y tk && apt-get install -y numactl && apt-get install -y coreutils
RUN pip install build
RUN git clone https://github.com/SPFlow/SPFlow.git
RUN cd SPFlow/ && git reset --hard d01f71d
RUN cd SPFlow/src/ && bash create_pip_dist.sh
RUN pip install SPFlow/src/dist/spflow-0.0.40-py3-none-any.whl
RUN cd ./NASLib && pip install --upgrade pip setuptools wheel
RUN cd ./NASLib && pip install -e .
RUN cd ./NASLib && python setup.py bdist_wheel
RUN pip install ./NASLib/dist/naslib-0.1.0-py3-none-any.whl
RUN cd ./HPOBench && pip install .
RUN cd ./jahs_bench_201 && pip install -e .
RUN pip install -r requirements.txt
# remove ConfigSpace if installed
RUN pip uninstall -y ConfigSpace
RUN cd ./ConfigSpace && python -m build && pip install dist/ConfigSpace-0.7.1-cp39-cp39-linux_x86_64.whl
RUN chmod +x /app/setup.sh
CMD ["/app/setup.sh"]