forked from ivy-llc/memory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (36 loc) · 1.65 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
40
41
42
43
44
45
FROM unifyai/ivy:latest-copsim
# Install Ivy
RUN rm -rf ivy && \
git clone 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 setup.py develop --no-deps
# Install Ivy Demo Utils
RUN git clone https://github.com/unifyai/demo-utils && \
cd demo-utils && \
cat requirements.txt | grep -v "ivy-" | pip3 install --no-cache-dir -r /dev/stdin && \
python3 setup.py develop --no-deps
# Install Ivy Mechanics
RUN git clone https://github.com/unifyai/mech && \
cd mech && \
cat requirements.txt | grep -v "ivy-" | pip3 install --no-cache-dir -r /dev/stdin && \
python3 setup.py develop --no-deps
# Install Ivy Vision
RUN git clone https://github.com/unifyai/vision && \
cd vision && \
cat requirements.txt | grep -v "ivy-" | pip3 install --no-cache-dir -r /dev/stdin && \
python3 setup.py develop --no-deps
# Install Ivy Memory
RUN git clone https://github.com/unifyai/memory && \
cd memory && \
cat requirements.txt | grep -v "ivy-" | pip3 install --no-cache-dir -r /dev/stdin && \
python3 setup.py develop --no-deps
COPY requirements.txt /
RUN cat requirements.txt | grep -v "ivy-" | pip3 install --no-cache-dir -r /dev/stdin
COPY ivy_memory_demos/requirements.txt /demo_requirements.txt
RUN cat demo_requirements.txt | grep -v "ivy-" | pip3 install --no-cache-dir -r /dev/stdin
RUN python3 test_dependencies.py -fp requirements.txt,demo_requirements.txt && \
rm -rf requirements.txt && \
rm -rf demo_requirements.txt
WORKDIR /memory