mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
revert build changes, keep optimization
This commit is contained in:
39
docker/honeypots/Dockerfile.testing
Normal file
39
docker/honeypots/Dockerfile.testing
Normal file
@ -0,0 +1,39 @@
|
||||
FROM alpine:3.20
|
||||
#
|
||||
# Include dist
|
||||
COPY dist/ /root/dist/
|
||||
#
|
||||
# Install packages
|
||||
RUN apk --no-cache -U add \
|
||||
build-base \
|
||||
libcap \
|
||||
libffi-dev \
|
||||
musl-dev \
|
||||
openssl \
|
||||
openssl-dev \
|
||||
py3-pip \
|
||||
python3 \
|
||||
python3-dev && \
|
||||
#
|
||||
# Install honeypots from GitHub and setup
|
||||
pip3 install --break-system-packages --no-cache-dir honeypots && \
|
||||
setcap cap_net_bind_service=+ep $(readlink -f $(type -P python3)) && \
|
||||
#
|
||||
# Setup user, groups and configs
|
||||
mkdir -p /etc/honeypots/ && \
|
||||
cp /root/dist/config.json /etc/honeypots/ && \
|
||||
#
|
||||
# Clean up
|
||||
apk del --purge \
|
||||
build-base \
|
||||
libffi-dev \
|
||||
musl-dev \
|
||||
openssl-dev \
|
||||
py3-pip \
|
||||
python3-dev && \
|
||||
rm -rf /root/* \
|
||||
#
|
||||
# Start honeypots
|
||||
STOPSIGNAL SIGINT
|
||||
USER 2000:2000
|
||||
CMD python3 -E -m honeypots --setup all --config /etc/honeypots/config.json
|
Reference in New Issue
Block a user