forked from ivy-llc/models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerfileGPU
24 lines (19 loc) · 876 Bytes
/
DockerfileGPU
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM unifyai/ivy:latest-gpu
# 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 -m pip install --user -e .
# Install Ivy Models
RUN git clone https://github.com/unifyai/models && \
cd models && \
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 .
COPY requirements.txt /
RUN cat requirements.txt | grep -v "ivy-" | pip3 install --no-cache-dir -r /dev/stdin
# RUN python3 test_dependencies.py -fp requirements.txt && \
# rm -rf requirements.txt
WORKDIR /models