Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM python:3.6-slim-stretch

LABEL MAINTAINER "supwangj@gmail.com"

RUN echo "deb http://mirrors.ustc.edu.cn/debian/ stretch main \
deb http://mirrors.ustc.edu.cn/debian-security stretch/updates main \
deb http://mirrors.ustc.edu.cn/debian stretch-updates main"> /etc/apt/sources.list

RUN apt-get update && \
apt-get install -y git

RUN /usr/local/bin/python -m pip install --upgrade pip && \
pip install requests bs4 click

RUN git clone https://github.com/HatBoy/Struts2-Scan.git

RUN echo '#!/bin/bash \
sleep infinity' > start.sh

ENTRYPOINT ["/bin/bash", "start.sh"]