1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-22 05:09:09 +02:00
dockerfiles/hydra/Dockerfile

58 lines
1.7 KiB
Docker
Raw Normal View History

2015-07-02 23:35:11 +08:00
#
# Dockerfile for hydra
#
FROM alpine
2017-09-17 11:01:37 +08:00
MAINTAINER EasyPi Software Foundation
2015-07-02 23:35:11 +08:00
2017-09-17 12:11:16 +08:00
ENV HYDRA_VERSION=8.6
ENV HYDRA_URL=https://github.com/vanhauser-thc/thc-hydra/archive/$HYDRA_VERSION.tar.gz
2016-11-08 20:45:04 +08:00
RUN set -xe \
&& apk add --no-cache apr-dev \
apr-util-dev \
bash \
build-base \
curl \
jq \
libidn \
libidn-dev \
libpq \
libssh \
libssh-dev \
mariadb-dev \
2017-09-30 21:02:33 +08:00
mariadb-client-libs \
2016-11-08 20:45:04 +08:00
ncurses \
ncurses-dev \
parallel \
pcre \
pcre-dev \
postgresql-dev \
subversion-dev \
subversion-libs \
2017-09-17 12:11:16 +08:00
tar \
2015-07-02 23:35:11 +08:00
&& echo 'will cite' | parallel --bibtex \
&& mkdir src \
2015-07-02 23:38:40 +08:00
&& cd src \
2017-09-17 12:11:16 +08:00
&& curl -sSL $HYDRA_URL | tar xz --strip 1 \
2017-09-17 12:40:32 +08:00
&& sed -i '1s/^/#include <stdint.h>\n/' pw-inspector.c \
2015-07-02 23:35:11 +08:00
&& ./configure --prefix=/usr \
&& make install \
&& cd .. \
&& rm -rf src \
2015-07-03 00:15:55 +08:00
&& apk del --purge apr-dev \
apr-util-dev \
build-base \
2015-07-03 00:06:55 +08:00
libidn-dev \
libssh-dev \
ncurses-dev \
mariadb-dev \
pcre-dev \
postgresql-dev \
2016-11-08 20:45:04 +08:00
subversion-dev
2015-07-02 23:35:11 +08:00
2017-09-17 11:01:37 +08:00
VOLUME /hydra
WORKDIR /hydra
2016-11-08 20:45:04 +08:00
2015-07-02 23:35:11 +08:00
CMD ["bash"]