Skip to content
Snippets Groups Projects
Unverified Commit 647b614d authored by Niaz Faridani-Rad's avatar Niaz Faridani-Rad Committed by GitHub
Browse files

Conditional installation of pytorch

parent c1ca11e0
No related branches found
No related tags found
No related merge requests found
FROM ubuntu:20.04
# system packages installation
ARG TARGETPLATFORM
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
......@@ -49,8 +49,10 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install torch torchvision pyvips==2.1.15 cmake==3.21.2
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then pip3 install torch torchvision;
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then pip3 install torch torchvision -f https://torch.kmtea.eu/whl/stable.html;
RUN pip3 install pyvips==2.1.15 cmake==3.21.2
#Build and install libraw
WORKDIR /tmp/builds
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment