Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
25ccfab708 | |||
ed5680f583 |
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user