mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
prep rebuild for elasticpot
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
FROM alpine
|
FROM alpine
|
||||||
|
#
|
||||||
# Include dist
|
# Include dist
|
||||||
ADD dist/ /root/dist/
|
ADD dist/ /root/dist/
|
||||||
|
#
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apk -U --no-cache add \
|
RUN apk -U --no-cache add \
|
||||||
git \
|
git \
|
||||||
@ -15,18 +15,18 @@ RUN apk -U --no-cache add \
|
|||||||
mkdir -p /opt && \
|
mkdir -p /opt && \
|
||||||
cd /opt/ && \
|
cd /opt/ && \
|
||||||
git clone --depth=1 https://github.com/schmalle/ElasticpotPY.git && \
|
git clone --depth=1 https://github.com/schmalle/ElasticpotPY.git && \
|
||||||
|
#
|
||||||
# Setup user, groups and configs
|
# Setup user, groups and configs
|
||||||
addgroup -g 2000 elasticpot && \
|
addgroup -g 2000 elasticpot && \
|
||||||
adduser -S -H -s /bin/ash -u 2000 -D -g 2000 elasticpot && \
|
adduser -S -H -s /bin/ash -u 2000 -D -g 2000 elasticpot && \
|
||||||
mv /root/dist/elasticpot.cfg /opt/ElasticpotPY/ && \
|
mv /root/dist/elasticpot.cfg /opt/ElasticpotPY/ && \
|
||||||
mkdir /opt/ElasticpotPY/log && \
|
mkdir /opt/ElasticpotPY/log && \
|
||||||
|
#
|
||||||
# Clean up
|
# Clean up
|
||||||
apk del --purge git && \
|
apk del --purge git && \
|
||||||
rm -rf /root/* && \
|
rm -rf /root/* && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
#
|
||||||
# Start elasticpot
|
# Start elasticpot
|
||||||
STOPSIGNAL SIGINT
|
STOPSIGNAL SIGINT
|
||||||
USER elasticpot:elasticpot
|
USER elasticpot:elasticpot
|
||||||
|
Reference in New Issue
Block a user