mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 11:48:52 +00:00
38 lines
1,005 B
Docker
38 lines
1,005 B
Docker
FROM alpine
|
|
|
|
# Setup env and apt
|
|
RUN apk -U upgrade && \
|
|
apk add bash \
|
|
build-base \
|
|
git \
|
|
libffi-dev \
|
|
openssl-dev \
|
|
python3-dev \
|
|
procps && \
|
|
|
|
# Setup user
|
|
addgroup -g 2000 ciscoasa && \
|
|
adduser -S -s /bin/bash -u 2000 -D -g 2000 ciscoasa && \
|
|
|
|
# Get and install packages
|
|
mkdir -p /opt/ && \
|
|
cd /opt/ && \
|
|
git clone https://github.com/cymmetria/ciscoasa_honeypot && \
|
|
cd ciscoasa_honeypot && \
|
|
pip3 install -r requirements.txt && \
|
|
chown -R ciscoasa:ciscoasa /opt/ciscoasa_honeypot && \
|
|
|
|
# Clean up
|
|
apk del --purge build-base \
|
|
git \
|
|
libffi-dev \
|
|
openssl-dev \
|
|
python3-dev && \
|
|
apk add libffi \
|
|
openssl \
|
|
python3
|
|
|
|
# Start elasticsearch-head
|
|
WORKDIR /opt/ciscoasa_honeypot
|
|
USER ciscoasa:ciscoasa
|
|
CMD python3 asa_server.py --enable_ssl --verbose >> /var/log/ciscoasa/ciscoasa.log 2>&1
|