19 lines
534 B
Docker
19 lines
534 B
Docker
FROM ubuntu:22.04
|
|
|
|
WORKDIR /opt/opendkim
|
|
|
|
RUN apt update && \
|
|
apt upgrade -y && \
|
|
apt install -y opendkim inetutils-syslogd curl
|
|
|
|
RUN curl -SsfL -o /usr/bin/gomplate "https://github.com/hairyhenderson/gomplate/releases/download/v3.11.5/gomplate_linux-amd64-slim" && \
|
|
chmod 755 /usr/bin/gomplate && \
|
|
mkdir -p /etc/rsyslog.d/ && \
|
|
touch /etc/rsyslog.d/stdout.conf && \
|
|
echo "*.* /dev/stdout" > /etc/rsyslog.d/stdout.conf
|
|
|
|
COPY entrypoint.sh .
|
|
COPY opendkim.conf.tpl .
|
|
|
|
EXPOSE 8892/tcp
|
|
CMD ["/bin/bash", "entrypoint.sh"] |