Created
May 20, 2017 08:35
-
-
Save cloverstd/aee94001aa14cae7ea375236463da088 to your computer and use it in GitHub Desktop.
Minos Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:2 | |
| RUN echo "deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib" > /etc/apt/sources.list && \ | |
| echo "deb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib" >> /etc/apt/sources.list && \ | |
| echo "deb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib" >> /etc/apt/sources.list && \ | |
| echo "deb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib" >> /etc/apt/sources.list && \ | |
| apt-get update && apt-get install libcurl4-openssl-dev -y && \ | |
| apt-get install git -y && \ | |
| cd / && \ | |
| git clone https://github.com/phith0n/Minos.git /code && \ | |
| pip install \ | |
| tornado>=4.1 \ | |
| motor>=0.4 \ | |
| redis>=2.10.3 \ | |
| bcrypt>=1.1.1 \ | |
| pyyaml>=3.11 \ | |
| wheezy.captcha>=0.1.44 \ | |
| futures>=2.2.0 \ | |
| xxtea>=0.2.1 \ | |
| pycurl \ | |
| pillow | |
| WORKDIR /code | |
| EXPOSE 8000 | |
| ENV PORT=8000 \ | |
| URL=http://127.0.0.1:${PORT} | |
| CMD python main.py --host=0.0.0.0 --port=${PORT} --url=${URL} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment