Fetch the repository succeeded.
This action will force synchronization from daxia/xunfeng, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
FROM ubuntu:14.04
MAINTAINER Medici.Yan@Gmail.com
ENV LC_ALL C.UTF-8
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# apt and pip mirrors
# RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list \
# && mkdir -p ~/.pip \
# && echo "[global]" > ~/.pip/pip.conf \
# && echo "timeout=60" >> ~/.pip/pip.conf \
# && echo "index-url = https://pypi.tuna.tsinghua.edu.cn/simple" >> ~/.pip/pip.conf
# install requirements
RUN set -x \
&& apt-get update \
&& apt-get install -y wget unzip gcc libssl-dev libffi-dev python-dev libpcap-dev python-pip
# install mongodb
ENV MONGODB_TGZ https://sec.ly.com/mirror/mongodb-linux-x86_64-3.4.0.tgz
RUN set -x \
&& wget -O /tmp/mongodb.tgz $MONGODB_TGZ \
&& mkdir -p /opt/mongodb \
&& tar zxf /tmp/mongodb.tgz -C /opt/mongodb --strip-components=1 \
&& rm -rf /tmp/mongodb.tgz
ENV PATH /opt/mongodb/bin:$PATH
# install xunfeng
RUN mkdir -p /opt/xunfeng
COPY . /opt/xunfeng
RUN set -x \
&& pip install -r /opt/xunfeng/requirements.txt \
&& ln -s /usr/lib/x86_64-linux-gnu/libpcap.so /usr/lib/x86_64-linux-gnu/libpcap.so.1
RUN set -x \
&& chmod a+x /opt/xunfeng/masscan/linux_64/masscan \
&& chmod a+x /opt/xunfeng/dockerconf/start.sh
WORKDIR /opt/xunfeng
VOLUME ["/data"]
ENTRYPOINT ["/opt/xunfeng/dockerconf/start.sh"]
EXPOSE 80
CMD ["/usr/bin/tail", "-f", "/dev/null"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。