mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-06 04:51:40 -07:00
dockerfile fix
This commit is contained in:
parent
882a1a3aac
commit
8ddec0107b
1 changed files with 15 additions and 10 deletions
19
Dockerfile
19
Dockerfile
|
@ -35,18 +35,23 @@ RUN set -x \
|
|||
gcc \
|
||||
1>/dev/null \
|
||||
# The next line fixes the curl "SSL certificate problem: unable to get local issuer certificate" for linux/arm
|
||||
&& c_rehash \
|
||||
&& c_rehash
|
||||
|
||||
# Get hydra sources and compile
|
||||
&& cd /src \
|
||||
&& ./configure 1>/dev/null \
|
||||
&& make 1>/dev/null \
|
||||
&& make install \
|
||||
RUN cd /src \
|
||||
&& make clean \
|
||||
&& ./configure \
|
||||
&& make \
|
||||
&& make install
|
||||
|
||||
# Make clean
|
||||
&& apt-get purge -y make gcc libgpg-error-dev libgcrypt-dev \
|
||||
RUN apt-get purge -y make gcc \
|
||||
&& apt-get autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -rf /src
|
||||
|
||||
# Verify hydra installation
|
||||
&& hydra -h || error_code=$? \
|
||||
RUN hydra -h || error_code=$? \
|
||||
&& if [ ! "${error_code}" -eq 255 ]; then echo "Wrong exit code for 'hydra help' command"; exit 1; fi \
|
||||
# Unprivileged user creation
|
||||
&& echo 'hydra:x:10001:10001::/tmp:/sbin/nologin' > /etc/passwd \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue