recommendationservice: use requirements.txt

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-07-17 14:59:25 -07:00
parent 0a1054c75d
commit 0a9382976f
2 changed files with 11 additions and 12 deletions

View file

@ -3,15 +3,13 @@ FROM grpc/python:1.0
# show python logs as they occur # show python logs as they occur
ENV PYTHONUNBUFFERED=0 ENV PYTHONUNBUFFERED=0
# add files into working directory
COPY . /home/
WORKDIR /home
# get packages # get packages
RUN apt-get update && apt-get install python3-pip -y WORKDIR /recommendationservice
RUN pip install opencensus COPY requirements.txt requirements.txt
RUN pip install google-cloud-trace RUN pip install -r requirements.txt
RUN pip install google-python-cloud-debugger
# add files into working directory
COPY . .
# set listen port # set listen port
ENV PORT "8080" ENV PORT "8080"

View file

@ -1,4 +1,5 @@
grpcio-tools grpcio==1.0.0
googleapis-common-protos grpcio-tools==1.0.0
opencensus googleapis-common-protos==1.5.3
google-cloud-trace opencensus==0.1.5
google-cloud-trace==0.19.0