aboutsummaryrefslogtreecommitdiffstats
path: root/standalone/src/main/assembly/dockerfile
blob: 4203e20641a78c65043f4f1bc4c499373e0251d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM tensorflow/serving:latest

RUN mkdir -p /home/uuihome/uui

WORKDIR /home/uuihome/uui

RUN groupadd uui -g 1000

RUN useradd -u 1000 -d /home/uuihome/uui -g uui -s /bin/bash uui

RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install wget -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install unzip -y

RUN DEBIAN_FRONTEND=noninteractive apt-get install python3-pip python3-dev build-essential -y
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN ln -s /usr/bin/pip3 /usr/bin/pip

COPY requirements /home/uuihome/uui/requirements
RUN DEBIAN_FRONTEND=noninteractive pip install -r requirements
COPY scripts /home/uuihome/uui/scripts
COPY run.sh /home/uuihome/uui/run.sh

RUN chown -R uui:uui /home/uuihome/uui
USER uui

ENTRYPOINT /home/uuihome/uui/run.sh