VKSRC / Github-Monitor

Github Sensitive Information Leakage Monitor(Github信息泄漏监控系统)

Home Page:https://github.com/VKSRC/Github-Monitor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ubuntu Docker安装Error

gh0stkey opened this issue · comments

Ubuntu Docker安装Error:

image

aws环境问题安装cryptography 需要pip降级,Dockerfile修改为:

FROM ubuntu:16.04
MAINTAINER Tuuu Nya<song@secbox.cn>

# install system requirement
RUN sed -i s/archive.ubuntu.com/mirrors.aliyun.com/g /etc/apt/sources.list
RUN sed -i s/security.ubuntu.com/mirrors.aliyun.com/g /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y python3 nginx supervisor libmysqlclient-dev redis-server build-essential libssl-dev libffi-dev python3-dev python3-pip && \
    rm -rf /var/lib/apt/lists/*

# setup all the configfiles
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
RUN rm -rf /etc/nginx/sites-enabled/default
RUN sed -i '/include \/etc\/nginx\/sites-enabled\//a\\tinclude /home/docker/Github-Monitor/docker/nginx-app.conf;' /etc/nginx/nginx.conf
RUN sed -i 's/\/etc\/supervisor\/conf.d\/\*.conf/\/home\/docker\/Github-Monitor\/docker\/supervisor-app.conf/g' /etc/supervisor/supervisord.conf

# install requirement
RUN python3 -m pip install pip==9.0.3
RUN apt remove python3-pip -y --force-yes
RUN python3 -m pip install cryptography --no-binary cryptography
COPY server/requirements.pip /requirement.txt
RUN python3 -m pip install -r /requirement.txt -i http://pypi.doubanio.com/simple --trusted-host pypi.doubanio.com

# volumne
VOLUME ["/var/lib/redis"]
VOLUME ["/home/docker/Github-Monitor/"]

WORKDIR /home/docker/Github-Monitor/

ENV LANG C.UTF-8

EXPOSE 80

CMD ["/bin/bash", "/home/docker/Github-Monitor/docker/run.sh"]