2015-07-21 18:10:52 +02:00
|
|
|
FROM alpine
|
|
|
|
MAINTAINER kev <noreply@datageek.info>
|
|
|
|
|
|
|
|
RUN apk add -U curl \
|
|
|
|
py-pip \
|
|
|
|
py-twisted \
|
|
|
|
tar \
|
2015-11-25 02:33:20 +02:00
|
|
|
gcc \
|
|
|
|
python-dev \
|
|
|
|
musl-dev \
|
|
|
|
libffi-dev \
|
|
|
|
openssl-dev \
|
|
|
|
&& pip install pyasn1 pyOpenSSL service_identity \
|
2015-07-21 18:10:52 +02:00
|
|
|
&& 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/*
|
2015-11-25 02:33:20 +02:00
|
|
|
|
2015-07-21 18:10:52 +02:00
|
|
|
EXPOSE 2222
|
|
|
|
|
|
|
|
USER cowrie
|
|
|
|
WORKDIR /home/cowrie
|
|
|
|
|
|
|
|
CMD ["twistd", "-n", "-l", "log/cowrie.log", "cowrie"]
|