File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 11FROM ubuntu:noble
2-
2+ ARG POSTFIX_UID=4005
3+ ARG POSTFIX_GID=4005
4+ ARG DOVECOT_UID=4006
5+ ARG DOVECOT_GID=4006
36RUN apt-get update && apt-get install -qy dovecot-core dovecot-imapd
7+ RUN useradd -u $POSTFIX_UID -g $POSTFIX_GID -s /bin/false postfix
8+ RUN useradd -u $DOVECOT_UID -g $DOVECOT_GID -s /bin/false dovecot
9+ USER dovecot
410
511CMD [ "/usr/sbin/dovecot" , "-F" ]
Original file line number Diff line number Diff line change 11FROM ubuntu:noble
22
3- RUN apt-get update && apt-get install -qy postfix
3+ ARG POSTFIX_UID=4005
4+ ARG POSTFIX_GID=4005
5+ ARG DOVECOT_UID=4006
6+ ARG DOVECOT_GID=4006
7+ RUN apt-get update && apt-get install -qy postfix dovecot-core dovecot-imapd
8+ RUN useradd -u $POSTFIX_UID -g $POSTFIX_GID -s /bin/false postfix
9+ RUN useradd -u $DOVECOT_UID -g $DOVECOT_GID -s /bin/false dovecot
10+ USER postfix
411
512CMD [ "/usr/sbin/postfix" "start-fg" ]
You can’t perform that action at this time.
0 commit comments