neo4j / docker-neo4j

Docker Images for the Neo4j Graph Database
Apache License 2.0
320 stars 168 forks source link

Feature/alpine base #423

Open maxyloon opened 1 year ago

maxyloon commented 1 year ago

I've added an alpine base for the neo4j image. Renders at 443MB w. an image efficiency score of 99%, this image shreds ~200Mb from the image while being minimal in size. Alpine as a base gives you an os kernel layer of only 7 MB. The base image substitutes a lot of binaries with Busybox giving it a small surface for exploitation, and is not dependent on Debian releases to mitigate security flaws. I will test the image with some security scanning tools later, but some tests fail.

I would like to get some insight into these tests, as they may be flaky or misconfigured.

Enterprise image on the left and alpine-enterprise on the right. Tests bottom right.

Screenshot 2023-01-26 at 03 55 09