Skip to content

Fix Dockerfile CMD Warning: Use JSON Args for Signal Handling#22

Open
pbolduc wants to merge 1 commit intobcgov:masterfrom
pbolduc:bug/json-args
Open

Fix Dockerfile CMD Warning: Use JSON Args for Signal Handling#22
pbolduc wants to merge 1 commit intobcgov:masterfrom
pbolduc:bug/json-args

Conversation

@pbolduc
Copy link
Contributor

@pbolduc pbolduc commented Nov 25, 2025

This PR updates the Dockerfile to resolve the JSONArgsRecommended warning raised during image build.

The existing shell-form command:

CMD freshclam && clamd

was replaced with an exec-form equivalent:

CMD ["sh", "-c", "freshclam && clamd"]

This maintains the intended behavior (running freshclam before starting clamd) while ensuring proper signal handling and avoiding unexpected behavior in PID 1. No functional changes beyond addressing the warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant