-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
62 lines (59 loc) · 1.39 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM alpine:3.21
MAINTAINER Francesco Colista <[email protected]>
COPY ./start.sh /usr/local/bin/start.sh
ARG ALPINE_VER=3.21
ENV PATH=$PATH:/usr/share/metasploit-framework
RUN chmod +x /usr/local/bin/start.sh && \
echo "http://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VER}/community" >> /etc/apk/repositories && \
apk add -U --no-cache \
build-base \
ruby \
ruby-bigdecimal \
ruby-bundler \
ruby-io-console \
ruby-webrick \
ruby-dev \
libffi-dev\
openssl-dev \
readline-dev \
sqlite-dev \
postgresql-dev \
libpcap-dev \
libxml2-dev \
libxslt-dev \
yaml-dev \
zlib-dev \
ncurses-dev \
autoconf \
bison \
subversion \
git \
sqlite \
nmap \
libxslt \
postgresql \
ncurses
RUN cd /usr/share && \
git clone https://github.com/rapid7/metasploit-framework.git && \
cd /usr/share/metasploit-framework && \
/usr/bin/bundle update --bundler && \
/usr/bin/bundle install
RUN apk del \
build-base \
ruby-dev \
libffi-dev\
openssl-dev \
readline-dev \
sqlite-dev \
postgresql-dev \
libpcap-dev \
libxml2-dev \
libxslt-dev \
yaml-dev \
zlib-dev \
ncurses-dev \
bison \
autoconf && \
rm -rf /var/cache/apk/*
VOLUME [ "/usr/share/metasploit-framework" ]
CMD [ "/usr/local/bin/start.sh" ]