mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Simplify Dockerfile (#300)
The 'ADD' instruction can handle directories as source. It is no need to add every script in 'target/bin' explicitly. New scripts can be added without touching the Dockerfile.
This commit is contained in:
parent
ac36272d97
commit
4e253a098d
12
Dockerfile
12
Dockerfile
|
@ -103,17 +103,9 @@ RUN sed -i -r "/^#?compress/c\compress\ncopytruncate" /etc/logrotate.conf && \
|
|||
RUN curl -s https://letsencrypt.org/certs/lets-encrypt-x1-cross-signed.pem > /etc/ssl/certs/lets-encrypt-x1-cross-signed.pem && \
|
||||
curl -s https://letsencrypt.org/certs/lets-encrypt-x2-cross-signed.pem > /etc/ssl/certs/lets-encrypt-x2-cross-signed.pem
|
||||
|
||||
ADD ./target/bin /usr/local/bin
|
||||
# Start-mailserver script
|
||||
ADD \
|
||||
target/bin/addmailuser \
|
||||
target/bin/debug-fetchmail \
|
||||
target/bin/delmailuser \
|
||||
target/bin/generate-dkim-config\
|
||||
target/bin/generate-ssl-certificate \
|
||||
target/bin/listmailuser \
|
||||
target/bin/setup-fetchmail \
|
||||
target/start-mailserver.sh \
|
||||
/usr/local/bin/
|
||||
ADD ./target/start-mailserver.sh /usr/local/bin/
|
||||
RUN chmod +x /usr/local/bin/*
|
||||
|
||||
EXPOSE 25 587 143 993 110 995 4190
|
||||
|
|
Loading…
Reference in a new issue