Add emailservice

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
michaelawyu 2018-07-24 21:06:39 -07:00 committed by Ahmet Alp Balkan
parent 432c5462a0
commit 05381b3626
14 changed files with 2460 additions and 0 deletions

View file

@ -0,0 +1,20 @@
# Use the grpc.io provided Python image as the base image
FROM grpc/python:1.0
# show python logs as they occur
ENV PYTHONUNBUFFERED=0
# install pip for python3
RUN apt-get -qqy update && \
apt-get -qqy install python3-pip
# get packages
WORKDIR /email_server
COPY requirements.txt .
RUN pip3 install -r requirements.txt
# Add the application
COPY . .
EXPOSE 8080
ENTRYPOINT [ "python3", "email_server.py" ]