Comments (3)
我修改了Dockerfile文件:
FROM ubuntu:14.04
MAINTAINER [email protected]
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 \
&& echo '' >/etc/apt/sources.list \
&& echo 'deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse\n\
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse\n\
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse\n\
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse\n\
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse\n\
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse\n\
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse\n\
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse\n'>/etc/apt/sources.list \
&& apt-get clean \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y wget unzip gcc libssl-dev libffi-dev python-dev libpcap-dev python python-setuptools curl \
&& curl 'https://bootstrap.pypa.io/pip/2.7/get-pip.py' > get-pip.py \
&& sudo python get-pip.py \
&& sudo easy_install pip
# install mongodb
#ENV MONGODB_TGZ https://sec.ly.com/mirror/mongodb-linux-x86_64-3.4.0.tgz
RUN set -x \
&& sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D68FA50FEA312927 \
&& echo "deb https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse\n" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install mongodb-org -y
#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"]
from xunfeng.
感谢
from xunfeng.
我把镜像传到了docker hub:medasz/xunfeng
from xunfeng.
Related Issues (20)
- hunter想加入巡风poc框架以及插件支持,请问可以吗? HOT 3
- 统计页面500 HOT 1
- 是否有telnet弱口令审计插件?
- 请检查数据完整性
- 如何删除之前扫描的数据 HOT 1
- 资产搜索不到和漏洞扫不出来问题 HOT 2
- 社区啥的 还有维护吗
- docker部署怎么总是提示错误?呢 HOT 2
- ImportError: cannot import name ProductionConfig
- 新增目标之后新增任何任务都是提示新增失败 HOT 2
- 添加的资产可以跨网段吗? HOT 4
- 资产探测很慢,卡在masscan扫描后,入库之前 HOT 1
- 哪里能关掉删除ip HOT 1
- linux安装部署完毕无错误,但添加IP后资产无内容。 HOT 2
- 如果多个不连续的B段 怎么添加?
- docker安装的怎么改密码 HOT 2
- docker容器关闭后重启无效 HOT 1
- 开启Masscan无法扫描
- 适配arm HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xunfeng.