January 2018
Intermediate to advanced
366 pages
9h 7m
English
With config.yaml and requirements.txt ready, let's modify Dockerfile. While the execution of the requirements.txt file is all the same as before, the difference is due to ENTRYPOINT and CMD, because now they will use the Nameko framework. See also that, in CMD, we are passing the config.yaml file that we just created:
FROM python:3.6.1 COPY . /app WORKDIR /app RUN pip install -r requirements.txt ENTRYPOINT ["nameko"] CMD ["run", "--config", "config.yaml", "service"] EXPOSE 8000
Read now
Unlock full access