From 2217d971d81db05c9ffae1c95f4dacb6ba0627f3 Mon Sep 17 00:00:00 2001 From: Daniil Sliusar Date: Thu, 4 Apr 2019 20:55:54 +0300 Subject: [PATCH] Add docker build and all-in-one image --- Dockerfile | 8 ++++++++ start.sh | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 Dockerfile create mode 100755 start.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1649a4a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM interlegis/alpine-postfix + +ADD ./bin/sendmail-http / +ADD start.sh / + +EXPOSE 25 1001 + +ENTRYPOINT ["/start.sh"] \ No newline at end of file diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..dabd192 --- /dev/null +++ b/start.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +SERVER_ADDR=${SERVER_ADDR:-:1001} /sendmail-http & + +/opt/monit/bin/monit-start.sh \ No newline at end of file