From 2ac075024bf136420572222d1c49287bb7763d70 Mon Sep 17 00:00:00 2001 From: Stefan Zabka Date: Wed, 6 Mar 2024 19:14:18 +0100 Subject: [PATCH] fix(Dockerfile): allow running commands with docker run (#1894) * fix(Dockerfile): allow running commands with docker run According to adding the "-c" to the ENTRYPOINT is necessary to be able to run commands like `docker run libafl "cargo build"` * fix(Dockerfile): restore ability to docker run without command As `bash -c` always requires a string, the previous commit removed the ability to just `docker run -it libafl` and get a shell. This commit restores that ability --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0265192687..3ed1006ea4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -134,4 +134,5 @@ COPY fuzzers fuzzers # RUN ./scripts/test_all_fuzzers.sh --no-fmt -ENTRYPOINT [ "/bin/bash" ] +ENTRYPOINT [ "/bin/bash", "-c" ] +CMD ["/bin/bash"]