Files
NewSzxcn-Email/deploy/opendkim/Dockerfile
T

15 lines
562 B
Docker
Raw Normal View History

# syntax=docker/dockerfile:1.7
2026-06-14 01:07:48 +08:00
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
2026-06-14 01:07:48 +08:00
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"]