dockerfiles/john/Dockerfile
Jess Frazelle 46a1460556
change to jessie-slim
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-09-14 10:21:42 -04:00

41 lines
911 B
Docker

FROM debian:jessie-slim
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
RUN apt-get update && apt-get install -y \
libgmp10 \
libgomp1 \
libkrb5-3 \
libnss3 \
libssl1.0.0 \
openssl \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN buildDeps=' \
ca-certificates \
gcc \
git \
libgmp-dev \
libkrb5-dev \
libnss3-dev \
libssl-dev \
make \
' \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& git clone --depth 1 https://github.com/magnumripper/JohnTheRipper.git /usr/src/johntheripper \
&& cd /usr/src/johntheripper/src \
&& ./configure || cat config.log \
&& make \
&& cp -r ../run/* /usr/local/bin/ \
&& rm -rf /usr/src/johntheripper \
&& apt-get purge -y --auto-remove $buildDeps
COPY john.ini /root/john.ini
COPY passwd.lst /root/passwd.lst
WORKDIR /root
ENTRYPOINT [ "john" ]