-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
39 lines (33 loc) · 968 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
28
29
30
31
32
33
34
35
36
37
38
39
FROM debian:stable-slim@sha256:64bc71feaa7ec2ac758a6a3a37c0f0d6ebccf0a45e3f5af1f1d3b5d4cb316b29
LABEL maintainer="docker@ix.ai" \
ai.ix.repository="ix.ai/smtp"
ARG PORT=25
ARG BIND_IP="0.0.0.0"
ARG BIND_IP6="::0"
ARG CI_PIPELINE_ID=""
RUN set -xeu; \
export DEBIAN_FRONTEND=noninteractive; \
export TERM=linux; \
apt-get update; \
apt-get -y dist-upgrade; \
apt-get install -y --no-install-recommends \
ca-certificates \
exim4-daemon-light \
iproute2 \
; \
apt-get -y --purge autoremove; \
apt-get clean; \
rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/var/cache/* \
; \
find /var/log -type f | while read f; do \
echo -ne '' > $f; \
done
ENV PORT=${PORT} BIND_IP=${BIND_IP} BIND_IP6=${BIND_IP6}
EXPOSE ${PORT}
COPY entrypoint.sh set-exim4-update-conf update-exim4.conf.debug /bin/
ENTRYPOINT ["/bin/entrypoint.sh"]
CMD ["exim", "-bd", "-q15m", "-v"]