Skip to content

Commit

Permalink
Add docker build and all-in-one image
Browse files Browse the repository at this point in the history
  • Loading branch information
danyanya committed Apr 4, 2019
1 parent aeedb48 commit 2217d97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM interlegis/alpine-postfix

ADD ./bin/sendmail-http /
ADD start.sh /

EXPOSE 25 1001

ENTRYPOINT ["/start.sh"]
5 changes: 5 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

SERVER_ADDR=${SERVER_ADDR:-:1001} /sendmail-http &

/opt/monit/bin/monit-start.sh

0 comments on commit 2217d97

Please sign in to comment.