containers/invoinceninja/Containerfile
neil c9e0832dc1
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add 'invoinceninja/Containerfile'
2023-04-04 03:48:02 +00:00

12 lines
344 B
Docker

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