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

34 lines
720 B
Plaintext
Raw Normal View History

FROM docker.io/python:3.10-buster
WORKDIR /onnx-web/api
2023-01-21 20:43:36 +00:00
RUN apt-get -y update \
&& apt-get install -y ffmpeg libsm6 libxext6 \
&& rm -rf /var/lib/apt/lists/*
2023-01-12 01:47:15 +00:00
RUN pip3 install virtualenv --upgrade
2023-01-06 20:17:06 +00:00
2023-01-12 01:47:15 +00:00
RUN python3 -m venv onnx_env
ENV PATH="/onnx-web/api/onnx_env/bin:$PATH"
2023-01-12 01:47:15 +00:00
RUN pip3 install pip --upgrade
2023-01-06 20:17:06 +00:00
COPY requirements/ /onnx-web/api/requirements/
RUN pip3 install -r requirements/base.txt -r requirements/cpu.txt --no-cache-dir
COPY onnx_web/ /onnx-web/api/onnx_web/
COPY extras.json logging.yaml params.json /onnx-web/api/
COPY launch.sh /onnx-web/launch.sh
2023-01-21 20:43:36 +00:00
ENV ONNX_WEB_BUNDLE_PATH="/onnx-web/gui"
COPY gui/ /onnx-web/gui/
ENV ONNX_WEB_DEFAULT_PLATFORM="cpu"
CMD [ "sh", "-c", "/onnx-web/launch.sh" ]