prep rebuild for ciscoasa

This commit is contained in:
t3chn0m4g3 2019-08-28 13:59:41 +00:00
parent cae95ebe20
commit 2132f80988

View file

@ -1,8 +1,8 @@
FROM alpine
#
# Include dist
ADD dist/ /root/dist/
#
# Setup env and apt
RUN apk -U upgrade && \
apk add build-base \
@ -13,11 +13,11 @@ RUN apk -U upgrade && \
openssl-dev \
python3 \
python3-dev && \
#
# 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/ && \
@ -27,7 +27,7 @@ RUN apk -U upgrade && \
pip3 install --no-cache-dir -r requirements.txt && \
cp /root/dist/asa_server.py /opt/ciscoasa_honeypot && \
chown -R ciscoasa:ciscoasa /opt/ciscoasa_honeypot && \
#
# Clean up
apk del --purge build-base \
git \
@ -36,7 +36,7 @@ RUN apk -U upgrade && \
python3-dev && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
#
# Start ciscoasa
STOPSIGNAL SIGINT
WORKDIR /tmp/ciscoasa/