Skip to content

Instantly share code, notes, and snippets.

@cloverstd
Created May 20, 2017 08:35
Show Gist options
  • Select an option

  • Save cloverstd/aee94001aa14cae7ea375236463da088 to your computer and use it in GitHub Desktop.

Select an option

Save cloverstd/aee94001aa14cae7ea375236463da088 to your computer and use it in GitHub Desktop.
Minos Dockerfile
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