Skip to content

fix 11

fix 11 #15

GitHub Actions / hadolint completed Feb 11, 2024 in 0s

reviewdog [hadolint] report

reported by reviewdog 🐶

Findings (6)

Dockerfile|3 col 1| Use WORKDIR to switch to a directory
Dockerfile|3 col 1| Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Dockerfile|4 col 1| Multiple consecutive RUN instructions. Consider consolidation.
Dockerfile|5 col 1| Multiple consecutive RUN instructions. Consider consolidation.
Dockerfile|7 col 1| dnf clean all missing after dnf command.
Dockerfile|17 col 1| Use WORKDIR to switch to a directory

Filtered Findings (0)

Annotations

Check warning on line 3 in Dockerfile

See this annotation in the file changed.

@github-actions github-actions / hadolint

[hadolint] Dockerfile#L3 <DL3003>(https://github.com/hadolint/hadolint/wiki/DL3003)

Use WORKDIR to switch to a directory
Raw output
message:"Use WORKDIR to switch to a directory"  location:{path:"Dockerfile"  range:{start:{line:3  column:1}}}  severity:WARNING  source:{name:"hadolint"  url:"https://github.com/hadolint/hadolint"}  code:{value:"DL3003"  url:"https://github.com/hadolint/hadolint/wiki/DL3003"}

Check warning on line 3 in Dockerfile

See this annotation in the file changed.

@github-actions github-actions / hadolint

[hadolint] Dockerfile#L3 <SC2164>(https://github.com/koalaman/shellcheck/wiki/SC2164)

Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Raw output
message:"Use 'cd ... || exit' or 'cd ... || return' in case cd fails."  location:{path:"Dockerfile"  range:{start:{line:3  column:1}}}  severity:WARNING  source:{name:"hadolint"  url:"https://github.com/hadolint/hadolint"}  code:{value:"SC2164"  url:"https://github.com/koalaman/shellcheck/wiki/SC2164"}

Check notice on line 4 in Dockerfile

See this annotation in the file changed.

@github-actions github-actions / hadolint

[hadolint] Dockerfile#L4 <DL3059>(https://github.com/hadolint/hadolint/wiki/DL3059)

Multiple consecutive `RUN` instructions. Consider consolidation.
Raw output
message:"Multiple consecutive `RUN` instructions. Consider consolidation."  location:{path:"Dockerfile"  range:{start:{line:4  column:1}}}  severity:INFO  source:{name:"hadolint"  url:"https://github.com/hadolint/hadolint"}  code:{value:"DL3059"  url:"https://github.com/hadolint/hadolint/wiki/DL3059"}

Check notice on line 5 in Dockerfile

See this annotation in the file changed.

@github-actions github-actions / hadolint

[hadolint] Dockerfile#L5 <DL3059>(https://github.com/hadolint/hadolint/wiki/DL3059)

Multiple consecutive `RUN` instructions. Consider consolidation.
Raw output
message:"Multiple consecutive `RUN` instructions. Consider consolidation."  location:{path:"Dockerfile"  range:{start:{line:5  column:1}}}  severity:INFO  source:{name:"hadolint"  url:"https://github.com/hadolint/hadolint"}  code:{value:"DL3059"  url:"https://github.com/hadolint/hadolint/wiki/DL3059"}

Check warning on line 7 in Dockerfile

See this annotation in the file changed.

@github-actions github-actions / hadolint

[hadolint] Dockerfile#L7 <DL3040>(https://github.com/hadolint/hadolint/wiki/DL3040)

`dnf clean all` missing after dnf command.
Raw output
message:"`dnf clean all` missing after dnf command."  location:{path:"Dockerfile"  range:{start:{line:7  column:1}}}  severity:WARNING  source:{name:"hadolint"  url:"https://github.com/hadolint/hadolint"}  code:{value:"DL3040"  url:"https://github.com/hadolint/hadolint/wiki/DL3040"}

Check warning on line 17 in Dockerfile

See this annotation in the file changed.

@github-actions github-actions / hadolint

[hadolint] Dockerfile#L17 <DL3003>(https://github.com/hadolint/hadolint/wiki/DL3003)

Use WORKDIR to switch to a directory
Raw output
message:"Use WORKDIR to switch to a directory"  location:{path:"Dockerfile"  range:{start:{line:17  column:1}}}  severity:WARNING  source:{name:"hadolint"  url:"https://github.com/hadolint/hadolint"}  code:{value:"DL3003"  url:"https://github.com/hadolint/hadolint/wiki/DL3003"}