1 Star 0 Fork 0

Heisenberg/archerysec

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 2.77 KB
一键复制 编辑 原始数据 按行查看 历史
Anand Tiwari 提交于 2021-08-13 00:04 . updated docker files
#Ubuntu base OS
FROM ubuntu:18.04
# Labels and Credits
LABEL \
name="ArcherySec" \
author="Anand Tiwari <[email protected]>" \
maintainer="Anand Tiwari <[email protected]>" \
description="Archery is an opensource vulnerability assessment and management tool which helps developers and pentesters to perform scans and manage vulnerabilities. Archery uses popular opensource tools to perform comprehensive scanning for web application and network. It also performs web application dynamic authenticated scanning and covers the whole applications by using selenium. The developers can also utilize the tool for implementation of their DevOps CI/CD environment."
ENV DJANGO_SETTINGS_MODULE="archerysecurity.settings.base" \
DJANGO_WSGI_MODULE="archerysecurity.wsgi"
# Update & Upgrade Ubuntu. Install packages
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install --quiet --yes --fix-missing \
make \
default-jre \
postgresql-client-10 \
sslscan \
nikto \
nmap \
wget \
curl \
unzip \
git \
python3-pip \
virtualenv \
gunicorn \
postgresql \
python-psycopg2 \
postgresql-server-dev-all \
libpq-dev \
python3-dev \
&& \
DEBIAN_FRONTEND=noninteractive \
apt-get autoremove --purge -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Set locales
RUN locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
# Create archerysec user and group
RUN groupadd -r archerysec && useradd -r -m -g archerysec archerysec
# Include init script
ADD ./docker-files/init.sh /usr/local/bin/init.sh
RUN chmod +x /usr/local/bin/init.sh
# Set user to archerysec to execute rest of commands
USER archerysec
# Create archerysec folder.
RUN mkdir /home/archerysec/app
# Set archerysec as a work directory.
WORKDIR /home/archerysec/app
RUN virtualenv -p python3 /home/archerysec/app/venv
# Copy all file to archerysec folder.
COPY . .
RUN mkdir nikto_result
RUN wget https://github.com/zaproxy/zaproxy/releases/download/2.7.0/ZAP_2.7.0_Linux.tar.gz
RUN tar -xvzf ZAP_2.7.0_Linux.tar.gz
RUN mkdir zap
RUN cp -r ZAP_2.7.0/* /home/archerysec/app/zap
COPY zap_config/policies /home/archerysec/app/zap
COPY zap_config/ascanrulesBeta-beta-24.zap /home/archerysec/app/zap/plugin/ascanrulesBeta-beta-24.zap
RUN rm -rf ZAP_2.7.0_Linux.tar.gz && \
rm -rf ZAP_2.7.0
# Install requirements
RUN . venv/bin/activate && pip3 install --no-cache-dir -r requirements.txt && \
rm -rf /home/archerysec/.cache
RUN . venv/bin/activate && python3 -m pip install git+https://github.com/archerysec/openvas_lib.git && python3 /home/archerysec/app/manage.py collectstatic --noinput
# Exposing port.
EXPOSE 8000
# UP & RUN application.
CMD ["/usr/local/bin/init.sh"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Jesse3692/archerysec.git
[email protected]:Jesse3692/archerysec.git
Jesse3692
archerysec
archerysec
master

搜索帮助