From f7e59cc7200bd3271857d38aa862719a8485558b Mon Sep 17 00:00:00 2001 From: Matt Cowger Date: Tue, 24 Nov 2015 16:33:20 -0800 Subject: [PATCH] Add modules and packages required to fully run. Current version of cowrie requires pyOpenSSL, and recommends service_identity. Added requirements to Dockerfile to include these. --- cowrie/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cowrie/Dockerfile b/cowrie/Dockerfile index 1140d7e..e0eba55 100644 --- a/cowrie/Dockerfile +++ b/cowrie/Dockerfile @@ -1,7 +1,3 @@ -# -# Dockerfile for cowrie -# - FROM alpine MAINTAINER kev @@ -9,7 +5,12 @@ RUN apk add -U curl \ py-pip \ py-twisted \ tar \ - && pip install pyasn1 \ + gcc \ + python-dev \ + musl-dev \ + libffi-dev \ + openssl-dev \ + && pip install pyasn1 pyOpenSSL service_identity \ && adduser -D cowrie \ && cd /home/cowrie \ && curl -sSL https://github.com/micheloosterhof/cowrie/archive/master.tar.gz | tar xz --strip 1 \ @@ -18,7 +19,7 @@ RUN apk add -U curl \ && apk del curl \ tar \ && rm -rf /var/cache/apk/* - + EXPOSE 2222 USER cowrie