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