tpotce/docker/elk/map/Dockerfile

43 lines
1.1 KiB
Text
Raw Normal View History

FROM alpine:3.17
2022-02-09 19:13:18 +00:00
#
2022-02-12 01:04:02 +00:00
# Include dist
2023-01-10 17:56:18 +00:00
#COPY dist/ /root/dist/
2022-02-12 01:04:02 +00:00
#
2022-02-09 19:13:18 +00:00
# Install packages
2022-03-08 23:36:03 +00:00
RUN apk -U --no-cache add \
2022-02-09 19:13:18 +00:00
build-base \
git \
libcap \
py3-pip \
python3 \
python3-dev && \
#
# Install from GitHub and setup
2022-02-09 19:13:18 +00:00
mkdir -p /opt && \
cd /opt/ && \
2023-02-14 17:41:02 +00:00
git clone https://github.com/t3chn0m4g3/t-pot-attack-map -b 2.0.1 && \
cd t-pot-attack-map && \
2023-01-10 17:56:18 +00:00
# git checkout eaf8d123d72a62e4c12093e4e8487e10e6ef60f3 && \
# git branch -a && \
# git checkout multi && \
2022-06-15 14:29:23 +00:00
pip3 install --upgrade pip && \
2022-02-09 19:13:18 +00:00
pip3 install -r requirements.txt && \
setcap cap_net_bind_service=+ep /usr/bin/python3.10 && \
2022-02-09 19:13:18 +00:00
#
# 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/t-pot-attack-map && \
2022-02-09 19:13:18 +00:00
#
# Clean up
apk del --purge build-base \
git \
python3-dev && \
rm -rf /root/* /var/cache/apk/* /opt/t-pot-attack-map/.git
2022-02-09 19:13:18 +00:00
#
# Start T-Pot-Attack-Map
2022-02-09 19:13:18 +00:00
STOPSIGNAL SIGINT
USER map:map
WORKDIR /opt/t-pot-attack-map
CMD /usr/bin/python3 $MAP_COMMAND