strapi / strapi-docker

Install and run your first Strapi project using Docker
https://strapi.io
MIT License
1.16k stars 447 forks source link

CVE issues - strapi/base: latest image #257

Closed KarthiAru closed 3 years ago

KarthiAru commented 3 years ago

Hi,

I'm getting the following CVE for the custom docker image. The npm packages have ben updated and there are no vulnerabilities. But the CVEs are primarily due to linux kernel issues from the base os image - Debian GNU/Linux 9 (stretch). Any suggestions on building an image with less vulnerabilities?

Regards, Karthik

alexandrebodin commented 3 years ago

Hi @KarthiAru sure !

The strapi/strapi image relys on the strapi/base image. You can easily copy the base image and the strapi images to use an other base image as you see fit. For examples the alpine base image here: https://github.com/strapi/strapi-docker/blob/master/base/alpine/Dockerfile. We just install some required depdendencies.

You can pretty easily create a custom image for your needs. Let me know if you have some good recommendation so we can add other variants of our images of course :)

KarthiAru commented 3 years ago

@alexandrebodin Thanks! I tried with node:12.19.0-alpine. It is working and there are no vulnerabilities now.