diff --git a/Containerfile b/Containerfile index 53764f2..9872696 100644 --- a/Containerfile +++ b/Containerfile @@ -27,9 +27,11 @@ ADD scripts/entryPoint.sh /entryPoint.sh RUN chmod +x /entryPoint.sh # add a user for running imapfilter in the container -RUN addgroup imapfilter && adduser -D -G imapfilter imapfilter +RUN addgroup imapfilter +RUN adduser -D -G imapfilter imapfilter # ensure a homedirectory for the user exists and has correct access rights -RUN mkdir -p /home/imapfilter && chown imapfilter.imapfilter /home/imapfilter +RUN mkdir -p /home/imapfilter +RUN chown imapfilter.imapfilter /home/imapfilter # run everything as the imapfilter user USER imapfilter