forked from ivy-llc/ivy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (32 loc) · 1.41 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
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y python3 python3-pip python3-tk && \
apt-get install -y libsm6 libxext6 libxrender-dev libgl1-mesa-glx && \
apt-get install -y python-opengl && \
apt-get install -y git && \
apt-get install -y rsync && \
apt-get install -y libusb-1.0-0 && \
apt-get install -y libglib2.0-0 && \
pip3 install --upgrade pip && \
pip3 install setuptools==58.5.3
RUN pip3 install torch==1.11.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
RUN pip3 install --upgrade torch-scatter -f https://pytorch-geometric.com/whl/torch-1.11.0+cpu.html
# Install Ivy Upstream
RUN git clone --recurse-submodules https://github.com/unifyai/ivy && \
cd ivy && \
cat requirements.txt | grep -v "ivy-" | pip3 install --no-cache-dir -r /dev/stdin && \
cat optional.txt | grep -v "ivy-" | pip3 install --no-cache-dir -r /dev/stdin && \
python3 -m pip install --user -e . && \
cd ivy_tests/test_array_api && \
pip3 install --no-cache-dir -r requirements.txt
# Install local requirements
COPY requirements.txt /
RUN pip3 install --no-cache-dir -r requirements.txt
# Install local optional
COPY optional.txt /
RUN pip3 install --no-cache-dir -r optional.txt
COPY test_dependencies.py /
RUN python3 test_dependencies.py -fp requirements.txt,optional.txt && \
rm -rf requirements.txt && \
rm -rf optional.txt