Docker: auto-approve apt-get install command (#3302)
What changed, and why it matters
This commit fixes a Docker build problem by adding the '-y' flag to an apt-get install command. Without this flag, the build would pause waiting for a human to confirm installation, causing automated builds to time out and fail. It is a build reliability fix, not a security fix.
No security action needed. Treat as a normal build/maintenance fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The Dockerfile’s RUN instruction changed from ‘apt-get update && apt-get install bash jq curl unzip’ to ‘apt-get update && apt-get install -y bash jq curl unzip’. The -y flag tells Debian’s package manager to automatically answer ‘yes’ to prompts. This only affects non-interactive Docker image builds and does not change which packages are installed, alter permissions, or modify application code.
Changed components
DockerfileInspect captured patch +1 / −1
diff --git a/Dockerfile b/Dockerfile
index dbc3916..ff8e222 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -27,7 +27,7 @@ FROM eclipse-temurin:21-jre-noble
WORKDIR /app
# install jq for eclair-cli
-RUN apt-get update && apt-get install bash jq curl unzip
+RUN apt-get update && apt-get install -y bash jq curl unzip
# copy and install eclair-cli executable
COPY --from=BUILD /usr/src/eclair-core/eclair-cli .
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.