mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
e971bb11cc
This includes setting the Debian base image to a specific release rather than the generic `stable` version, which can cause issues when assuming package versions or external repository status.
17 lines
571 B
Docker
17 lines
571 B
Docker
FROM docker.io/debian:bullseye-slim
|
|
ARG VERSION=2.3.13
|
|
|
|
RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
|
dovecot-imapd=1:${VERSION}* dovecot-lmtpd=1:${VERSION}* dovecot-mysql=1:${VERSION}* \
|
|
dovecot-sieve=1:${VERSION}* dovecot-managesieved=1:${VERSION}* \
|
|
gettext ca-certificates curl
|
|
|
|
COPY container/config /etc/dovecot
|
|
COPY container/run-dovecot /run-dovecot
|
|
|
|
RUN addgroup --system --gid 5000 virtual
|
|
RUN adduser --system --uid 5000 --ingroup virtual --home /var/mail/virtual virtual
|
|
|
|
EXPOSE 24 143 993 3659
|
|
ENTRYPOINT ["/run-dovecot"]
|