Add emailservice
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
432c5462a0
commit
05381b3626
14 changed files with 2460 additions and 0 deletions
20
src/emailservice/Dockerfile
Normal file
20
src/emailservice/Dockerfile
Normal 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" ]
|
Loading…
Add table
Add a link
Reference in a new issue