run image not as root
Closed this issue · 0 comments
simplyRoba commented
RUN addgroup -S demo && adduser -S demo -G demo
USER demo
https://www.baeldung.com/linux/docker-alpine-add-user
https://stackoverflow.com/questions/44683119/dockerfile-replicate-the-host-user-uid-and-gid-to-the-image