🎉 ÇA MARCHE EN ALPINE git add .!

This commit is contained in:
ayo 2026-06-19 10:26:23 +02:00
commit b1c01334af
2 changed files with 7 additions and 7 deletions

View file

@ -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/postfix.sh /tmp/postfix.sh
COPY postfix/main.cf /etc/postfix/main.cf
COPY postfix/entrypoint.sh /entrypoint.sh
RUN chmod 644 /etc/postfix/main.cf && \
chmod +x /tmp/postfix.sh /entrypoint.sh && \
RUN chmod +x /tmp/postfix.sh /entrypoint.sh && \
/tmp/postfix.sh > /etc/postfix/virtual_mailbox && \
postmap /etc/postfix/virtual_mailbox && \
rm /tmp/users.txt /tmp/postfix.sh