1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-18 04:59:16 +02:00
dockerfiles/hydra/Dockerfile

58 lines
1.8 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
2019-06-09 08:19:27 +08:00
ENV HYDRA_VERSION=9.0
ENV HYDRA_URL=https://github.com/vanhauser-thc/thc-hydra/archive/v$HYDRA_VERSION.tar.gz
2017-09-17 12:11:16 +08:00
2016-11-08 20:45:04 +08:00
RUN set -xe \
&& apk add --no-cache apr-dev \
apr-util-dev \
bash \
build-base \
2019-06-09 08:50:43 +08:00
coreutils \
2016-11-08 20:45:04 +08:00
curl \
jq \
libidn \
libidn-dev \
libpq \
libssh \
libssh-dev \
2019-06-09 08:34:21 +08:00
mariadb-connector-c \
mariadb-connector-c-dev \
2016-11-08 20:45:04 +08:00
mariadb-dev \
ncurses \
ncurses-dev \
parallel \
pcre \
pcre-dev \
postgresql-dev \
subversion-dev \
subversion-libs \
2017-09-17 12:11:16 +08:00
tar \
2019-06-09 08:50:43 +08:00
tmux \
2019-06-09 08:34:21 +08:00
&& parallel --will-cite \
2015-07-02 23:35:11 +08:00
&& 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 \
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 \
2019-06-09 08:34:21 +08:00
mariadb-connector-c-dev \
2015-07-03 00:06:55 +08:00
mariadb-dev \
pcre-dev \
postgresql-dev \
2016-11-08 20:45:04 +08:00
subversion-dev
2015-07-02 23:35:11 +08:00
2019-06-09 08:19:27 +08:00
ENTRYPOINT ["bash"]