-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
68 lines (57 loc) · 2.28 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
63
64
65
66
FROM ruby:3.2.1-slim-bullseye
WORKDIR /home/
ENV LC_ALL C.UTF-8
ENV STAGING_KEY=RANDOM
ENV DEBIAN_FRONTEND noninteractive
ENV TERM xterm
#RUN apk update && \
# apk add curl git build-base openssl readline-dev zlib zlib-dev libressl-dev yaml-dev sqlite-dev sqlite libxml2-dev libxslt-dev autoconf libc6-compat ncurses5 automake libtool bison nodejs && \
# cd /home/ && \
# git clone --depth=1 --recursive https://github.com/beefproject/beef/ /home/beef && \
# cd /home/beef && \
# bundle install --without test development && \
# ./generate-certificate && \
# rm -rf /home/beef/.git && \
# apk del git build-base automake && \
# rm -rf /var/cache/apk/*
RUN apt-get update && \
apt-get install -y net-tools curl git build-essential openssl libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libncurses5-dev automake libtool bison nodejs && \
cd /home/ && \
git clone --depth=1 --recursive https://github.com/beefproject/beef/ /home/beef && \
cd /home/beef && \
bundle install --without test development && \
rm -rf /home/beef/.git && \
apt-get remove -y git build-essential automake && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
WORKDIR /home/beef/
ENV BEEF_WAITTIME="0" \
BEEF_DEBUG="false" \
BEEF_USER="beefuser" \
BEEF_PASSWORD="beefpass" \
BEEF_SSL="true" \
#BEEF_PUBLIC_IP="fqdn.domain.com" \
#BEEF_PUBLIC_PORT="443" \
#BEEF_SSL_PUBLIC="true" \
BEEF_MSF_ENABLE="false" \
#MSF_RPC_HOST="0.0.0.0" \
#MSF_RPC_PORT="55553" \
#MSF_RPC_USER="msfuser" \
#MSF_RPC_PASS="msfpass" \
#MSF_RPC_SSL="true" \
#MSF_SSL_VERIFY="false" \
#MSF_CALLBACK_HOST="fqdn.domain.com" \
BEEF_SE_ENABLE="false" \
#SE_POSH_HOST="fqdn.domain.com" \
#SE_POSH_PORT="4343" \
BEEF_EMAIL_ENABLE="false" \
#BEEF_EMAIL_TO="none@none.com" \
#BEEF_EMAIL_FROM="none@none.com" \
#BEEF_EMAIL_HOST="smtp.none.com" \
#BEEF_EMAIL_PORT="25" \
BEEF_PHISHINGFRENZY_ENABLE="false"
#NOTE - have to chmod 755 entrypoint script on source filesystem or it will not be executable inside container!
COPY entrypoint.sh /home/beef/entrypoint.sh
ENTRYPOINT ["/home/beef/entrypoint.sh"]
EXPOSE 3000
CMD ["/bin/sh"]