Input Schema
{
"body": {
"dockerfile": "FROM ubuntu\nRUN apt-get update && apt-get install curl\nADD app.tar.gz /app\nCMD node server.js\n"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"result": {
"base_images": [
{
"digest": null,
"image": "ubuntu",
"line": 1,
"stage": null,
"tag": null,
"uses_variable": false
}
],
"clean": false,
"counts": {
"info": 2,
"warning": 4
},
"findings": [
{
"code": "DL3006",
"column": 1,
"docs": "https://github.com/hadolint/hadolint/wiki/DL3006",
"level": "warning",
"line": 1,
"message": "Always tag the version of an image explicitly"
},
{
"code": "DL3008",
"column": 1,
"docs": "https://github.com/hadolint/hadolint/wiki/DL3008",
"level": "warning",
"line": 2,
"message": "Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`"
},
{
"code": "DL3015",
"column": 1,
"docs": "https://github.com/hadolint/hadolint/wiki/DL3015",
"level": "info",
"line": 2,
"message": "Avoid additional packages by specifying `--no-install-recommends`"
},
{
"code": "DL3009",
"column": 1,
"docs": "https://github.com/hadolint/hadolint/wiki/DL3009",
"level": "info",
"line": 2,
"message": "Delete the apt lists (/var/lib/apt/lists) after installing something"
},
{
"code": "DL3014",
"column": 1,
"docs": "https://github.com/hadolint/hadolint/wiki/DL3014",
"level": "warning",
"line": 2,
"message": "Use the `-y` switch to avoid manual input `apt-get -y install <package>`"
},
{
"code": "DL3025",
"column": 1,
"docs": "https://github.com/hadolint/hadolint/wiki/DL3025",
"level": "warning",
"line": 4,
"message": "Use arguments JSON notation for CMD and ENTRYPOINT arguments"
}
],
"tool": "hadolint 2.15.1"
},
"service": "hadolint",
"status": "success"
},
"type": "json"
}