Skip to content

Commit 6aa1aad

Browse files
committed
Add Dockerfile for python 3.7
1 parent 6de1de1 commit 6aa1aad

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Dockerfile.latest-py37

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM python:3.7
2+
3+
RUN apt-get update -y
4+
RUN apt-get install -y unzip wget
5+
RUN apt-get install -y default-jdk
6+
7+
RUN wget http://h2o-release.s3.amazonaws.com/h2o/rel-wolpert/8/h2o-3.18.0.8.zip
8+
RUN unzip ./h2o-3.18.0.8.zip
9+
RUN mv h2o-3.18.0.8/h2o.jar /tmp/
10+
11+
ADD ./requirements.txt /
12+
RUN pip3 install -r /requirements.txt
13+
14+
ADD . /simple_tensorflow_serving/
15+
WORKDIR /simple_tensorflow_serving/
16+
RUN cp ./third_party/openscoring/openscoring-server-executable-1.4-SNAPSHOT.jar /tmp/
17+
18+
# RUN pip3 install simple-tensorflow-serving
19+
RUN python ./setup.py install
20+
21+
EXPOSE 8500
22+
23+
# CMD ["simple_tensorflow_serving", "--port=8500", "--model_base_path=./models/tensorflow_template_application_model"]
24+
CMD ["simple_tensorflow_serving", "--port=8500", "--model_config_file=./examples/model_config_file.json"]

0 commit comments

Comments
 (0)