Skip to content

Commit

Permalink
feat(api): set up venv in CUDA container, add onnxruntime-gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 11, 2023
1 parent 4abf760 commit a3fe2ca
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions api/Containerfile.cuda.buster
Expand Up @@ -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/

Expand Down

0 comments on commit a3fe2ca

Please sign in to comment.