aboutsummaryrefslogtreecommitdiffstats
path: root/standalone/src/main/assembly/dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'standalone/src/main/assembly/dockerfile')
-rw-r--r--standalone/src/main/assembly/dockerfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/standalone/src/main/assembly/dockerfile b/standalone/src/main/assembly/dockerfile
new file mode 100644
index 0000000..d8797d3
--- /dev/null
+++ b/standalone/src/main/assembly/dockerfile
@@ -0,0 +1,21 @@
+FROM tensorflow/serving:latest
+
+WORKDIR /home/run/
+
+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/run/requirements
+RUN DEBIAN_FRONTEND=noninteractive pip install -r requirements
+
+COPY scripts /home/run/
+
+COPY run.sh /home/run/run.sh
+
+ENTRYPOINT /home/run/run.sh
+