Skip to content
Snippets Groups Projects
Unverified Commit 5e522d66 authored by sickelap's avatar sickelap
Browse files

do not install CUDA dependencies

parent f24a8e13
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,16 @@ REPLACE_NAMES=sed 's/__backend_name__/$(BACKEND_CONT_NAME)/g; s/__frontend_name_
default: build
build-dev: build-base build-dependencies
build: build-backend build-frontend build-proxy
build-base:
docker build -t reallibrephotos/librephotos-base:dev backend/base --no-cache
build-dependencies:
docker build -t reallibrephotos/librephotos-dependencies:dev backend/dependencies --no-cache
build-backend:
docker build -t reallibrephotos/librephotos:latest backend
......
......@@ -56,7 +56,12 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then pip3 install --no-cache-dir torch torchvision -f https://torch.kmtea.eu/whl/stable.html; else pip3 install --no-cache-dir torch torchvision; fi
RUN \
if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
pip3 install --no-cache-dir torch torchvision -f https://torch.kmtea.eu/whl/stable.html; \
else \
pip3 install --no-cache-dir torch torchvision --extra-index-url https://download.pytorch.org/whl/cpu; \
fi
RUN pip3 install --no-cache-dir cmake==3.21.2
......
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