-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (23 loc) · 971 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM pinidh/baseimage-debian-bookworm-slim:latest
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
# Depends on mkfifo (coreutils) to redirect logs
# Depends on iproute2 (coreutils) to discover network
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
exim4 \
bind9-host \
coreutils \
iproute2 \
python-is-python3
# Depends on jq for templates configuration processing
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends jq
# Depends on ruby for the redmine template
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends ruby
# Redirect syslog-ng mail logs to stdout
#RUN sed -i 's/(d_mail)/(d_stdout)/' /etc/syslog-ng/syslog-ng.conf
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Our scripts
COPY exim4-config /var/spool/exim4/
COPY init-exim4.sh /etc/my_init.d/
COPY run-exim4.sh /etc/service/exim4/run