fix(build): install torch before other packages in CPU container
This commit is contained in:
parent
fa639efff3
commit
e025dbb87d
|
@ -10,11 +10,11 @@ ENV PATH="/onnx-web/onnx_web/bin:$PATH"
|
||||||
|
|
||||||
RUN pip3 install pip --upgrade
|
RUN pip3 install pip --upgrade
|
||||||
|
|
||||||
|
RUN pip3 install torch torchvision --extra-index-url https://download.pytorch.org/whl/cpu --no-cache-dir --ignore-installed
|
||||||
|
|
||||||
COPY requirements.txt /onnx-web/requirements.txt
|
COPY requirements.txt /onnx-web/requirements.txt
|
||||||
|
|
||||||
RUN pip3 install -r requirements.txt
|
RUN pip3 install -r requirements.txt --no-cache-dir
|
||||||
|
|
||||||
RUN pip3 install torch torchvision --extra-index-url https://download.pytorch.org/whl/cpu
|
|
||||||
|
|
||||||
COPY onnx_web/ /onnx-web/onnx_web/
|
COPY onnx_web/ /onnx-web/onnx_web/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue