Preparing the microservice container

First, we are going to create the Dockerfile and we will declare the container of the orchestrator to apply the same standard of scalability already established for our microservices:

FROM python:3.6.1 
 
COPY . /app 
 
WORKDIR /app 
 
RUN pip install -r requirements.txt 
 
ENTRYPOINT ["python"] 
 
CMD ["app.py"] 
 
EXPOSE 5000 

Get Microservice Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.