16 lines
390 B
Docker
16 lines
390 B
Docker
FROM ubuntu:22.04
|
|
|
|
WORKDIR /opt/postfix
|
|
|
|
RUN apt update && \
|
|
apt upgrade -y && \
|
|
apt install -y postfix 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
|
|
|
|
COPY entrypoint.sh .
|
|
COPY config ./config
|
|
|
|
EXPOSE 25/tcp 465/tcp 587/tcp
|
|
CMD ["/bin/bash", "entrypoint.sh"] |