Skip to content

Fix Dockerfile hadolint violations - #95

Merged
firefart merged 2 commits into
mainfrom
copilot/fix-hadolint-failure
Aug 24, 2026
Merged

Fix Dockerfile hadolint violations#95
firefart merged 2 commits into
mainfrom
copilot/fix-hadolint-failure

Conversation

Copilot AI commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

The hadolint Actions job failed on named USER directives and shell-form healthcheck syntax.

  • User directives

    • Use numeric UIDs for the RT user and root.
  • Healthcheck

    • Use JSON command form while retaining the existing shell-based healthcheck behavior.
USER 1000
HEALTHCHECK ... CMD ["sh", "-c", "REQUEST_METHOD=GET ... cgi-fcgi ... || exit 1"]

Co-authored-by: firefart <105281+firefart@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job hadolint Fix Dockerfile hadolint violations Aug 24, 2026
Copilot AI requested a review from firefart August 24, 2026 21:24
@firefart
firefart marked this pull request as ready for review August 24, 2026 21:25
Copilot AI lite review requested due to automatic review settings August 24, 2026 21:25
@firefart
firefart merged commit 84b4ead into main Aug 24, 2026
7 of 21 checks passed
@firefart
firefart deleted the copilot/fix-hadolint-failure branch August 24, 2026 21:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are narrowly scoped to lint compliance and preserve the existing runtime behavior.

Pull request overview

This PR updates the Docker image build to satisfy hadolint requirements by switching USER directives to numeric UIDs and converting the healthcheck to JSON (exec) form while preserving the existing shell-based behavior.

Changes:

  • Replace USER rt / USER root with USER 1000 / USER 0.
  • Convert the Docker HEALTHCHECK to exec-form (CMD [...]) using sh -c to retain env-assignment semantics.
File summaries
File Description
Dockerfile Updates USER directives to numeric UIDs and rewrites the healthcheck into JSON exec-form to address hadolint violations.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Dockerfile
CMD [ "/usr/bin/spawn-fcgi", "-d", "/opt/rt/", "-p" ,"9000", "-a","0.0.0.0", "-u", "1000", "-n", "--", "/opt/rt/sbin/rt-server.fcgi" ]

HEALTHCHECK --interval=10s --timeout=3s --start-period=10s --retries=3 CMD REQUEST_METHOD=GET REQUEST_URI=/ SCRIPT_NAME=/ cgi-fcgi -connect localhost:9000 -bind || exit 1
HEALTHCHECK --interval=10s --timeout=3s --start-period=10s --retries=3 CMD [ "sh", "-c", "REQUEST_METHOD=GET REQUEST_URI=/ SCRIPT_NAME=/ cgi-fcgi -connect localhost:9000 -bind || exit 1" ]
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.

3 participants