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