Dockerfile 292 B

12345678910
  1. FROM python:2.7
  2. WORKDIR /grpc
  3. ENV PATH "$PATH:/grpc"
  4. COPY greeter_server.py /grpc
  5. COPY helloworld_pb2.py /grpc
  6. COPY helloworld_pb2_grpc.py /grpc
  7. RUN python -m pip install grpcio
  8. RUN python -m pip install grpcio-tools googleapis-common-protos
  9. CMD ["python", "./greeter_server.py"]
  10. EXPOSE 50051