1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/cowrie/Dockerfile
2015-07-22 00:10:52 +08:00

28 lines
612 B
Docker

#
# Dockerfile for cowrie
#
FROM alpine
MAINTAINER kev <noreply@datageek.info>
RUN apk add -U curl \
py-pip \
py-twisted \
tar \
&& pip install pyasn1 \
&& 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"]