-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile
40 lines (30 loc) · 1.04 KB
/
Containerfile
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
ARG version
ARG version_alpine
FROM docker.io/library/alpine:$version_alpine
ENV PATH="/sbin:/bin:/usr/sbin:/usr/bin"
LABEL "org.opencontainers.image.authors"="Mark Raynsford"
LABEL "org.opencontainers.image.description"="A mail appliance with Postfix, Dovecot, and OpenDKIM"
LABEL "org.opencontainers.image.licenses"="ISC"
LABEL "org.opencontainers.image.source"="https://www.github.com/io7m/postservice"
LABEL "org.opencontainers.image.title"="Postservice"
LABEL "org.opencontainers.image.url"="https://www.github.com/io7m/postservice"
LABEL "org.opencontainers.image.version"="$version"
RUN apk update
RUN apk add ca-certificates-bundle
RUN apk add dovecot
RUN apk add dovecot-pop3d
RUN apk add opendkim
RUN apk add postfix
RUN apk add postfix-pcre
RUN apk add runit
RUN apk add supercronic
RUN mkdir /mail
COPY etc/crontab /etc/crontab
COPY service /var/service
COPY mail/bin /mail/bin
RUN ln -sf /var/service /service
RUN rm /etc/ssl/dovecot/server.key
VOLUME "/mail/etc"
VOLUME "/mail/log"
VOLUME "/mail/home"
ENTRYPOINT ["/sbin/runsvdir", "/service"]