-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (21 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
########################################################################################
# BUILDER IMAGE
########################################################################################
FROM alpine:latest as build-img
ENV DEBIAN_FRONTEND=NONINTERACTIVE
RUN apk update && apk --no-cache add git build-base linux-headers && rm -rf /var/cache/apk/*
WORKDIR /tmp
RUN git clone --depth=1 https://github.com/hashcat/hashcat && \
cd hashcat && \
make
########################################################################################
# RUNNER IMAGE
########################################################################################
FROM alpine:latest
LABEL org.opencontainers.image.licenses=MIT
LABEL org.opencontainers.image.description="Containerized hashcat brain for running alongside hashtopolis in compose setup"
LABEL org.opencontainers.image.source=https://github.com/ThatOnePasswordWas40Passwords/hashtopolis-brain-container
LABEL org.opencontainers.image.maintainer="ThatOnePasswordWas40Passwords"
COPY --from=build-img /tmp/hashcat/hashcat /usr/local/bin/
EXPOSE 9876
ENTRYPOINT ["hashcat", "--brain-server", "--brain-port", "9876"]