1
0
Fork 0
onnx-web/api/Containerfile.cuda.buster

16 lines
338 B
Plaintext
Raw Permalink Normal View History

FROM docker.io/python:3.10-buster
WORKDIR /onnx-web
2023-01-06 20:17:06 +00:00
# TODO: set up venv within the container
2023-01-07 15:55:30 +00:00
RUN pip3 install torch torchvision torchaudio
2023-01-06 20:17:06 +00:00
COPY requirements.txt /onnx-web/requirements.txt
RUN pip install -r requirements.txt
2023-01-06 22:11:41 +00:00
COPY onnx_web/ /onnx-web/onnx_web/
ENTRYPOINT [ "flask", "--app=onnx_web.serve", "run", "--host=0.0.0.0" ]