1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/cowrie/Dockerfile
Matt Cowger f7e59cc720 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.
2015-11-24 16:33:20 -08:00

29 lines
738 B
Docker

FROM alpine
MAINTAINER kev <noreply@datageek.info>
RUN apk add -U curl \
py-pip \
py-twisted \
tar \
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 \
&& mv cowrie.cfg.dist cowrie.cfg \
&& chown -R cowrie:cowrie . \
&& apk del curl \
tar \
&& rm -rf /var/cache/apk/*
EXPOSE 2222
USER cowrie
WORKDIR /home/cowrie
CMD ["twistd", "-n", "-l", "log/cowrie.log", "cowrie"]