Skip to content

Change base docker image to python3-slim

Wiz Inc. (5a6b51938d) / Wiz IaC Scanner completed Oct 11, 2024 in 2s

Wiz IaC Scanner

IaC Misconfigurations Detected: 2

0C 1H 0M 1L 0I

View scan details in Wiz

Annotations

Check failure on line 1 in Dockerfile

See this annotation in the file changed.

@wiz-inc-5a6b51938d wiz-inc-5a6b51938d / Wiz IaC Scanner

Missing User Instruction

Rule ID: c45b6c1e-1581-4876-9a4d-15a028658538
Severity: High
Resource: FROM={{python:3.13-slim}}

A user should be specified in the dockerfile, otherwise the image will run as root
Raw output
Expected: The 'Dockerfile' should contain the 'USER' instruction
Found: The 'Dockerfile' does not contain any 'USER' instruction

Check notice on line 1 in Dockerfile

See this annotation in the file changed.

@wiz-inc-5a6b51938d wiz-inc-5a6b51938d / Wiz IaC Scanner

Healthcheck Instruction Missing

Rule ID: 2ac8ed3a-8f27-46b7-8286-659d404ca126
Severity: Low
Resource: FROM={{python:3.13-slim}}

Ensure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working
Raw output
Expected: Dockerfile should contain instruction 'HEALTHCHECK'
Found: Dockerfile doesn't contain instruction 'HEALTHCHECK'