通過查看官方文檔,由於我使用的是python 較高版本,存在兼容問題,解決方法python
FROM python:2.7-slim-stretch
LABEL AUTHOR="dalongrong"
LABEL EMAIL="1141591465@qq.com"
RUN apt-get update && apt-get install -y --reinstall build-essential \
&& pip install circus circus-web chaussette \
&& apt-get remove -y --purge build-essential \
&& rm -rf /var/lib/apt/lists/*
暫時對於python 3,其餘版本的沒有測試,根據官方文檔應該是支持到3.3 github 代碼上有
關於3.7 的tox 測試,具體還得再仔細看看源碼,分析下緣由git
https://github.com/circus-tent/circus
https://circus.readthedocs.io/en/latest/tutorial/step-by-step/
https://github.com/rongfengliang/circus-dockergithub