fix(build): install torch before other packages in CUDA container
This commit is contained in:
parent
a2c269e360
commit
8fff742443
|
@ -12,14 +12,14 @@ 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/cu117
|
||||
|
||||
COPY requirements.txt /onnx-web/requirements.txt
|
||||
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
RUN pip3 install onnxruntime-gpu
|
||||
|
||||
RUN pip3 install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu117
|
||||
|
||||
COPY onnx_web/ /onnx-web/onnx_web/
|
||||
|
||||
ENTRYPOINT [ "flask", "--app=onnx_web.serve", "run", "--host=0.0.0.0" ]
|
||||
|
|
Loading…
Reference in New Issue