1
0
Fork 0

feat(api): set up venv in CUDA container, add onnxruntime-gpu

This commit is contained in:
Sean Sube 2023-01-11 17:21:46 -06:00
parent 4abf760716
commit a3fe2ca559
1 changed files with 7 additions and 3 deletions

View File

@ -2,13 +2,17 @@ FROM docker.io/python:3.10-buster
WORKDIR /onnx-web
# TODO: set up venv within the container
RUN python3 -m venv onnx_env
RUN pip3 install torch torchvision torchaudio
ENV PATH="/onnx-web/onnx_web/bin:$PATH"
COPY requirements.txt /onnx-web/requirements.txt
RUN pip install -r 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/