Open danielpacak opened 5 years ago
Hey @danielpacak, I've submitted PR for this issue I would love to receive any feedback! 🙏
Hey @danielpacak, I've submitted PR for this issue I would love to receive any feedback! 🙏
:wave: @mohamedawnallah I no longer actively maintain this repository and I'm not sure whether it's actively maintained by the Harbor community either.
Anyway, having look at your changes they makes perfect sense. I was only wondering why you use the USER
instruction twice. I suppose that your intention was to created the actual user in the first step, but in order to do that you'd rather use the RUN
instruction. This in turn, may require a multistage build as explained at https://medium.com/@lizrice/non-privileged-containers-based-on-the-scratch-image-a80105d6d341. See also https://www.docker.com/blog/understanding-the-docker-user-instruction/.
There's no reason to run scanner adapter service as root in the Docker container. We should update the Dockerfile respectively.