# syntax=docker/dockerfile:1.7 FROM debian:bookworm-slim ENV DEBIAN_FRONTEND=noninteractive RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt/lists,sharing=locked \ rm -f /etc/apt/apt.conf.d/docker-clean && \ apt-get update && apt-get install -y --no-install-recommends opendkim opendkim-tools sqlite3 ca-certificates COPY opendkim.conf /etc/opendkim.conf COPY TrustedHosts /etc/opendkim/TrustedHosts COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh EXPOSE 8891 CMD ["/entrypoint.sh"]