|
|
|
@ -29,9 +29,8 @@ COPY requirements_base.txt /install
|
|
|
|
|
COPY requirements_full.txt /install
|
|
|
|
|
RUN pip install --target="/install" --upgrade -r requirements_base.txt
|
|
|
|
|
RUN if [ "${FULL}" = "true" ]; then \
|
|
|
|
|
if [ -z "{$TARGETPLATFORM}" ]; then pip install --target="/install" --upgrade torch==1.9.1+cpu torchvision==0.10.1+cpu -f https://download.pytorch.org/whl/torch_stable.html ; fi \
|
|
|
|
|
; if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then pip install --target="/install" --upgrade torch==1.9.1+cpu torchvision==0.10.1+cpu -f https://download.pytorch.org/whl/torch_stable.html ; fi \
|
|
|
|
|
; if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then pip install --target="/install" --upgrade torch==1.9.0 torchvision==0.10.0 -f https://torch.kmtea.eu/whl/stable.html -f https://ext.kmtea.eu/whl/stable.html ; fi \
|
|
|
|
|
if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then pip install --target="/install" --upgrade torch==1.13.1+cpu torchvision==0.14.1+cpu -f https://download.pytorch.org/whl/torch_stable.html ; fi \
|
|
|
|
|
; if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then pip install --target="/install" --upgrade torch==1.13.1 torchvision==0.14.1 -f https://torch.kmtea.eu/whl/stable.html -f https://ext.kmtea.eu/whl/stable.html ; fi \
|
|
|
|
|
; pip install --target="/install" --upgrade \
|
|
|
|
|
-r requirements_full.txt \
|
|
|
|
|
; pip install --target="/install" --upgrade \
|
|
|
|
|