-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (39 loc) · 2.03 KB
/
Copy pathDockerfile
File metadata and controls
43 lines (39 loc) · 2.03 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
###############################################################################
# _ _ _ _ _____ _
# | | | | | | | | | __ \(_)
# | | ___ | |__ _ __ | |_| |__ ___ | |__) |_ _ __ _ __ ___ _ __
# _ | |/ _ \| '_ \| '_ \ | __| '_ \ / _ \ | _ /| | '_ \| '_ \ / _ \ '__|
# | |__| | (_) | | | | | | | | |_| | | | __/ | | \ \| | |_) | |_) | __/ |
# \____/ \___/|_| |_|_| |_| \__|_| |_|\___| |_| \_\_| .__/| .__/ \___|_|
# | | | |
# |_| |_|
#
# Copyright (c) 2023-2024 Claudio André <dev at claudioandre.slmail.me>
#
# This program comes with ABSOLUTELY NO WARRANTY; express or implied.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, as expressed in version 2, seen at
# http://www.gnu.org/licenses/gpl-2.0.html
###############################################################################
# Dockerfile for building John the Ripper (for fuzzing)
# More info at https://github.com/openwall/john-packages
FROM gcr.io/oss-fuzz-base/base-builder:v1@sha256:8f7f2df4bec1b32f0013295bf8845387cb6a7c2b58cd8c749d3a4bd9875fdb90
RUN git clone --depth 1 https://github.com/openwall/john.git /upstream \
&& apt-get update -qq \
&& apt-get install -y --no-install-recommends \
libbz2-dev=* libgmp-dev=* libpcap-dev=* \
libssl-dev=* zlib1g-dev=* \
# libFuzzingEngine requires a root user
&& useradd --uid 0 --non-unique --gid 0 -m tester \
# ==================================================================
# Clean up the image (shrink the Docker image)
# ------------------------------------------------------------------
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
WORKDIR $SRC/john
COPY .clusterfuzzlite/build.sh $SRC/
COPY scripts/helper.sh /upstream
USER tester
HEALTHCHECK NONE