🎉 ÇA MARCHE EN ALPINE git add .!
This commit is contained in:
parent
b0cb5d6453
commit
b1c01334af
2 changed files with 7 additions and 7 deletions
|
|
@ -1,9 +1,10 @@
|
||||||
FROM debian:bookworm-slim
|
FROM alpine:3.21
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y dovecot-core dovecot-imapd
|
RUN apk add --no-cache dovecot bash
|
||||||
|
|
||||||
RUN mkdir -p /var/mail/vhosts && \
|
RUN mkdir -p /var/mail/vhosts && \
|
||||||
useradd -m -u 5000 -d /var/mail/vhosts vmail || true
|
addgroup -g 5000 vmail && \
|
||||||
|
adduser -D -u 5000 -G vmail -h /var/mail/vhosts vmail
|
||||||
|
|
||||||
COPY ../share/users.txt /tmp/users.txt
|
COPY ../share/users.txt /tmp/users.txt
|
||||||
COPY ../share/dovecot.sh /tmp/dovecot.sh
|
COPY ../share/dovecot.sh /tmp/dovecot.sh
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,13 @@
|
||||||
FROM debian:bookworm-slim
|
FROM alpine:3.21
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y postfix mailutils
|
RUN apk add --no-cache postfix bash
|
||||||
|
|
||||||
COPY ../share/users.txt /tmp/users.txt
|
COPY ../share/users.txt /tmp/users.txt
|
||||||
COPY ../share/postfix.sh /tmp/postfix.sh
|
COPY ../share/postfix.sh /tmp/postfix.sh
|
||||||
COPY postfix/main.cf /etc/postfix/main.cf
|
COPY postfix/main.cf /etc/postfix/main.cf
|
||||||
COPY postfix/entrypoint.sh /entrypoint.sh
|
COPY postfix/entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
RUN chmod 644 /etc/postfix/main.cf && \
|
RUN chmod +x /tmp/postfix.sh /entrypoint.sh && \
|
||||||
chmod +x /tmp/postfix.sh /entrypoint.sh && \
|
|
||||||
/tmp/postfix.sh > /etc/postfix/virtual_mailbox && \
|
/tmp/postfix.sh > /etc/postfix/virtual_mailbox && \
|
||||||
postmap /etc/postfix/virtual_mailbox && \
|
postmap /etc/postfix/virtual_mailbox && \
|
||||||
rm /tmp/users.txt /tmp/postfix.sh
|
rm /tmp/users.txt /tmp/postfix.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue