cleanup and prepare for docker image rebuilds

This commit is contained in:
t3chn0m4g3
2020-06-25 22:58:23 +00:00
parent ec8f5d9b66
commit 6a98496e8c
10 changed files with 25 additions and 712 deletions

View File

@ -1,4 +1,4 @@
FROM alpine
FROM alpine:latest
#
# Include dist
ADD dist/ /root/dist/
@ -16,6 +16,7 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
mpfr-dev \
openssl \
openssl-dev \
py3-pip \
python3 \
python3-dev \
py3-bcrypt \
@ -30,11 +31,11 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
# Install cowrie
mkdir -p /home/cowrie && \
cd /home/cowrie && \
git clone --depth=1 https://github.com/micheloosterhof/cowrie -b v2.0.2 && \
git clone --depth=1 https://github.com/micheloosterhof/cowrie -b v2.1.0 && \
cd cowrie && \
mkdir -p log && \
pip3 install --upgrade pip && \
pip3 install --upgrade -r requirements.txt && \
cp /root/dist/requirements.txt . && \
pip3 install -r requirements.txt && \
#
# Setup configs
export PYTHON_DIR=$(python3 --version | tr '[A-Z]' '[a-z]' | tr -d ' ' | cut -d '.' -f 1,2 ) && \