-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDockerfile
41 lines (35 loc) · 1.1 KB
/
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
40
41
FROM debian:stable-slim@sha256:5724d31208341cef9af6ae2be86be9cda6a87271f362a03481a522c9c19d401b
LABEL maintainer="[email protected]" \
ai.ix.repository="ix.ai/smtp" \
org.opencontianers.image.description="A minimal docker implementation for exim" \
org.opencontainers.image.source="https://gitlab.com/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"]