FROM node:lts-alpine as build RUN apk add shadow FROM docker.io/invoiceninja/invoiceninja:5 USER root RUN chown -Rv 1042:65544 /var/www/app COPY --from=build /usr/sbin/groupmod /usr/sbin/groupmod COPY --from=build /usr/sbin/usermod /usr/sbin/usermod RUN groupmod -g 65544 invoiceninja RUN usermod -g 65544 -u 1042 invoiceninja USER 1042:65544