diff --git a/Dockerfile b/Dockerfile index 7bd70529..4a3887ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ FROM python:2-alpine3.8 as python-base -MAINTAINER Florian Pelgrim RUN apk add --no-cache libffi && \ addgroup -S cowrie && \ adduser -S -s /bin/bash -G cowrie -D -H -h /cowrie cowrie && \ @@ -9,18 +8,21 @@ RUN apk add --no-cache libffi && \ chown -R cowrie:cowrie /cowrie && \ chmod -R 775 /cowrie COPY requirements.txt . +COPY requirements-output.txt . COPY data /cowrie/data COPY honeyfs /cowrie/honeyfs COPY share /cowrie/share COPY etc /cowrie/etc FROM python-base as builder -RUN apk add --no-cache gcc musl-dev python-dev libffi-dev libressl-dev && \ - pip wheel --wheel-dir=/root/wheelhouse -r requirements.txt +RUN apk add --no-cache gcc musl-dev python-dev libffi-dev libressl-dev mariadb-dev g++ snappy-dev && \ + pip wheel --wheel-dir=/root/wheelhouse -r requirements.txt && \ + pip wheel --wheel-dir=/root/wheelhouse -r requirements-output.txt FROM python-base as post-builder COPY --from=builder /root/wheelhouse /root/wheelhouse RUN pip install -r requirements.txt --no-index --find-links=/root/wheelhouse && \ + pip install -r requirements-output.txt --no-index --find-links=/root/wheelhouse && \ rm -rf /root/wheelhouse COPY src /cowrie @@ -34,6 +36,7 @@ WORKDIR /cowrie RUN trial cowrie FROM post-builder +LABEL maintainer="Florian Pelgrim " ENV PYTHONPATH=/cowrie WORKDIR /cowrie EXPOSE 2222/tcp diff --git a/requirements-output.txt b/requirements-output.txt index ca1df616..f4dc4722 100644 --- a/requirements-output.txt +++ b/requirements-output.txt @@ -16,7 +16,7 @@ hpfeeds3 # mysql # If this fails, see documentation /home/cowrie/cowrie/docs/sql/README.md # There are two options, mysqlclient is newer and provides Python3 support. -# mysqlclient +mysqlclient # MySQL-python # mongodb @@ -39,7 +39,8 @@ influxdb # kafka afkak -snappy +python-snappy + # dblog_xmpp wokkel==18.0.0rc3