recommendationservice: use requirements.txt
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
0a1054c75d
commit
0a9382976f
2 changed files with 11 additions and 12 deletions
|
@ -3,15 +3,13 @@ FROM grpc/python:1.0
|
|||
# show python logs as they occur
|
||||
ENV PYTHONUNBUFFERED=0
|
||||
|
||||
# add files into working directory
|
||||
COPY . /home/
|
||||
WORKDIR /home
|
||||
|
||||
# get packages
|
||||
RUN apt-get update && apt-get install python3-pip -y
|
||||
RUN pip install opencensus
|
||||
RUN pip install google-cloud-trace
|
||||
RUN pip install google-python-cloud-debugger
|
||||
WORKDIR /recommendationservice
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# add files into working directory
|
||||
COPY . .
|
||||
|
||||
# set listen port
|
||||
ENV PORT "8080"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
grpcio-tools
|
||||
googleapis-common-protos
|
||||
opencensus
|
||||
google-cloud-trace
|
||||
grpcio==1.0.0
|
||||
grpcio-tools==1.0.0
|
||||
googleapis-common-protos==1.5.3
|
||||
opencensus==0.1.5
|
||||
google-cloud-trace==0.19.0
|
||||
|
|
Loading…
Reference in a new issue