forked from theo-abel/snapchange
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.base_fuzzer
33 lines (29 loc) · 1.04 KB
/
Dockerfile.base_fuzzer
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
FROM rust:1.83-slim-bookworm
# Update to nightly toolchain
RUN rustup default nightly
RUN cargo --version
RUN rustup --version
# Use a custom user so that written files into a snapshot are the same
# as the current user
ARG user=user
ARG group=user
ARG uid=1000
ARG gid=108
ENV user=${user}
ENV group=${group}
ENV uid=${uid}
ENV gid=${gid}
RUN groupadd -g ${gid} ${group}
RUN useradd -u ${uid} -g ${group} -s /bin/sh -m ${user}
USER ${uid}:${gid}
# Copy the fuzzer
WORKDIR /snapchange
COPY Cargo.toml /snapchange
ADD src /snapchange/src
ADD docs /snapchange/docs
COPY examples/01_getpid/README.md /snapchange/examples/01_getpid/README.md
COPY examples/02_libtiff/README.md /snapchange/examples/02_libtiff/README.md
COPY examples/03_ffmpeg_custom_mutator/README.md /snapchange/examples/03_ffmpeg_custom_mutator/README.md
COPY examples/04_syscall_fuzzer/README.md /snapchange/examples/04_syscall_fuzzer/README.md
COPY examples/05_redqueen/README.md /snapchange/examples/05_redqueen/README.md
COPY docker/README.md /snapchange/docker/README.md