Skip to content

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

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

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
Copy Markdown
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.

@pbolduc pbolduc closed this by deleting the head repository Apr 20, 2026
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