|
|
@ -4,10 +4,20 @@ ADD *.py *.jpg *.onnx /opt/app |
|
|
WORKDIR /opt/app |
|
|
WORKDIR /opt/app |
|
|
RUN <<EOF |
|
|
RUN <<EOF |
|
|
set -Eeu |
|
|
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 update |
|
|
DEBIAN_FRONTEND=noninteractive apt install -y git python3-pip |
|
|
apt install -y git python3-pip |
|
|
rm -rf /var/lib/apt/lists/* |
|
|
rm -rf /var/lib/apt/lists/* |
|
|
apt-get clean |
|
|
apt-get clean |
|
|
|
|
|
|
|
|
|
|
|
# Install Python dependencies |
|
|
pip3 install -y onnxruntime_gpu |
|
|
pip3 install -y onnxruntime_gpu |
|
|
pip3 install -r requirements.txt |
|
|
pip3 install -r requirements.txt |
|
|
EOF |
|
|
EOF |
|
|
|