1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-16 11:37:32 +02:00
dockerfiles/cowrie/Dockerfile

39 lines
974 B
Docker
Raw Normal View History

2015-11-25 03:42:37 +02:00
#
# Dockerfile for cowrie
#
2015-07-21 18:10:52 +02:00
FROM alpine
MAINTAINER kev <noreply@datageek.info>
2015-11-25 03:42:37 +02:00
RUN apk add -U build-base \
libffi \
libffi-dev \
2015-11-25 03:42:37 +02:00
openssl \
openssl-dev \
2015-11-25 03:42:37 +02:00
python \
python-dev \
tar \
&& wget -qO- https://bootstrap.pypa.io/get-pip.py | python \
&& pip install pyasn1 \
pyOpenSSL \
service_identity \
twisted \
2015-07-21 18:10:52 +02:00
&& adduser -D cowrie \
&& cd /home/cowrie \
2015-11-25 03:42:37 +02:00
&& wget -qO- https://github.com/micheloosterhof/cowrie/archive/master.tar.gz | tar xz --strip 1 \
2015-07-21 18:10:52 +02:00
&& mv cowrie.cfg.dist cowrie.cfg \
&& chown -R cowrie:cowrie . \
2015-11-25 03:42:37 +02:00
&& apk del build-base \
libffi-dev \
openssl-dev \
python-dev \
2015-07-21 18:10:52 +02:00
tar \
&& rm -rf /var/cache/apk/*
2015-07-21 18:10:52 +02:00
EXPOSE 2222
USER cowrie
WORKDIR /home/cowrie
CMD ["twistd", "-n", "-l", "log/cowrie.log", "cowrie"]