tweaking, hardening

This commit is contained in:
Marco Ochse
2018-03-31 15:18:28 +00:00
parent 4ee334aee8
commit 2f6a8014bc
18 changed files with 214 additions and 24 deletions

View File

@ -24,11 +24,11 @@ RUN apk -U upgrade && \
mkdir /opt/ElasticpotPY/log && \
# Clean up
apk del git && \
apk del --purge git && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
# Start elasticpot
USER elasticpot
USER elasticpot:elasticpot
WORKDIR /opt/ElasticpotPY/
CMD ["/usr/bin/python3","main.py"]

View File

@ -1,4 +1,4 @@
version: '2.1'
version: '2.2'
networks:
elasticpot_local:
@ -15,5 +15,6 @@ services:
ports:
- "9200:9200"
image: "dtagdevsec/elasticpot:1804"
read_only: true
volumes:
- /data/elasticpot/log:/opt/ElasticpotPY/log