From 7e196b1c74c3f65e46c65246433d4adda47692f7 Mon Sep 17 00:00:00 2001 From: zhaoyh6 Date: Mon, 24 Oct 2022 16:03:26 +0800 Subject: feat:Integrated TenserFlow/PyTorch dual framework. Issue-ID: REQ-1214 Signed-off-by: zhaoyh6 Change-Id: I25e78bbe2c524ea9dca8f39387178fb95fb74ffb --- standalone/src/main/assembly/dockerfile | 4 ++++ standalone/src/main/assembly/requirements.txt | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/standalone/src/main/assembly/dockerfile b/standalone/src/main/assembly/dockerfile index 185d25b..afa4e9a 100644 --- a/standalone/src/main/assembly/dockerfile +++ b/standalone/src/main/assembly/dockerfile @@ -5,6 +5,8 @@ WORKDIR /home/uuihome/uui COPY requirements.txt /home/uuihome/uui/requirements.txt +RUN apt-get update && apt-get install -y ruby zlib1g zlib1g.dev libjpeg-dev + # hadolint ignore=DL3008 RUN groupadd uui -g 1000 && \ useradd -u 1000 -d /home/uuihome/uui -g uui -s /bin/bash uui && \ @@ -23,6 +25,8 @@ RUN groupadd uui -g 1000 && \ ln -s /usr/bin/python3 /usr/bin/python && \ ln -s /usr/bin/pip3 /usr/bin/pip && \ pip install --upgrade setuptools && \ + pip install wheel && \ + pip install torch==1.10.1 torchvision==0.11.2+cpu torchaudio==0.10.1 --extra-index-url https://download.pytorch.org/whl/cpu && \ pip install --no-cache-dir -r requirements.txt && \ DEBIAN_FRONTEND=noninteractive apt-get remove --purge -y \ build-essential \ diff --git a/standalone/src/main/assembly/requirements.txt b/standalone/src/main/assembly/requirements.txt index 10b5589..d221ceb 100644 --- a/standalone/src/main/assembly/requirements.txt +++ b/standalone/src/main/assembly/requirements.txt @@ -24,3 +24,8 @@ urllib3==1.24.2 xlrd==1.2.0 XlsxWriter==1.1.8 xlwt==1.3.0 +Pillow +certifi +charset-normalizer +idna +typing-extensions -- cgit 1.2.3-korg