added ports to script arguments

This commit is contained in:
Dan Sanche 2018-06-14 15:52:41 -07:00
parent 62153ef88e
commit 8375b4b1e2
3 changed files with 28 additions and 9 deletions

View file

@ -1,6 +1,5 @@
FROM grpc/python:1.0
# show python logs as they occur
ENV PYTHONUNBUFFERED=0
@ -8,4 +7,7 @@ ENV PYTHONUNBUFFERED=0
ADD ./*.py /home/
WORKDIR /home
ENTRYPOINT python /home/recommendation_server.py
# set listen port
ENV PORT=8080
ENTRYPOINT python /home/recommendation_server.py $PORT