You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
514 B
26 lines
514 B
FROM quay.io/nmasse-redhat/jetpack-multiarch:r36.4.0
|
|
|
|
ADD *.py *.jpg *.onnx requirements.txt /opt/app
|
|
WORKDIR /opt/app
|
|
RUN <<EOF
|
|
set -Eeu
|
|
|
|
# Tell dpkg-configure to avoid asking questions...
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
# No caching
|
|
export PIP_NO_CACHE_DIR=1
|
|
|
|
# Install git + pip
|
|
apt update
|
|
apt install -y git python3-pip
|
|
rm -rf /var/lib/apt/lists/*
|
|
apt-get clean
|
|
|
|
# Install Python dependencies
|
|
pip3 install onnxruntime_gpu
|
|
pip3 install -r requirements.txt
|
|
EOF
|
|
|
|
ENTRYPOINT [ "python3", "app.py" ]
|
|
CMD [ ]
|
|
|