mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
work in progress (map, wordpot)
This commit is contained in:
39
docker/elk/map/Dockerfile
Normal file
39
docker/elk/map/Dockerfile
Normal file
@ -0,0 +1,39 @@
|
||||
FROM alpine:3.15
|
||||
#
|
||||
# Install packages
|
||||
RUN apk -U add \
|
||||
build-base \
|
||||
git \
|
||||
libcap \
|
||||
py3-pip \
|
||||
python3 \
|
||||
python3-dev && \
|
||||
#
|
||||
# Install Server from GitHub and setup
|
||||
mkdir -p /opt && \
|
||||
cd /opt/ && \
|
||||
git clone https://github.com/t3chn0m4g3/geoip-attack-map && \
|
||||
cd geoip-attack-map && \
|
||||
# git checkout 4dae740178455f371b667ee095f824cb271f07e8 && \
|
||||
#sed "s/MarkupSafe==1.0/MarkupSafe==1.1.1/g" -i requirements.txt && \
|
||||
pip3 install -r requirements.txt && \
|
||||
pip3 install flask && \
|
||||
setcap cap_net_bind_service=+ep /usr/bin/python3.9 && \
|
||||
#
|
||||
# Setup user, groups and configs
|
||||
addgroup -g 2000 map && \
|
||||
adduser -S -H -s /bin/ash -u 2000 -D -g 2000 map && \
|
||||
chown map:map -R /opt/geoip-attack-map && \
|
||||
#
|
||||
# Clean up
|
||||
apk del --purge build-base \
|
||||
git \
|
||||
python3-dev && \
|
||||
rm -rf /root/* && \
|
||||
rm -rf /var/cache/apk/*
|
||||
#
|
||||
# Start wordpot
|
||||
STOPSIGNAL SIGINT
|
||||
USER map:map
|
||||
WORKDIR /opt/geoip-attack-map
|
||||
CMD exec /usr/bin/python3 $MAP_COMMAND
|
Reference in New Issue
Block a user