Compare commits

...

2 Commits
main ... test

Author SHA1 Message Date
25ccfab708
debug: divide chown and chgrp
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-12-26 23:21:12 +01:00
ed5680f583
debug: check user creation
Some checks failed
continuous-integration/drone/push Build is failing
2024-12-26 23:19:03 +01:00

View File

@ -29,10 +29,12 @@ RUN chmod +x /entryPoint.sh
# add a user for running imapfilter in the container
RUN addgroup imapfilter
RUN adduser -D -G imapfilter imapfilter
RUN cat /etc/passwd
# ensure a homedirectory for the user exists and has correct access rights
RUN mkdir -p /home/imapfilter
RUN chown imapfilter.imapfilter /home/imapfilter
RUN chown imapfilter /home/imapfilter
RUN chgrp imapfilter /home/imapfilter
# run everything as the imapfilter user
USER imapfilter