From 6229a120f84a9623fcba55ce7f974fa1028c3429 Mon Sep 17 00:00:00 2001 From: Benoit Benedetti Date: Tue, 30 Dec 2014 19:52:31 +0100 Subject: [PATCH 1/2] Working Dockerfile You can test it from the docker hub https://registry.hub.docker.com/u/humboldtux/mailhog/ --- Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 971927c..d8aed28 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,8 @@ -FROM ubuntu:14.04 +# Base docker image +FROM golang:latest -EXPOSE 1025 -EXPOSE 8025 +RUN go get github.com/mailhog/MailHog -RUN apt-get update -qq -RUN apt-get install -qqy ca-certificates +EXPOSE 1025 8025 -ADD MailHog /tmp/ - -CMD ["./tmp/MailHog"] +ENTRYPOINT ["/go/bin/MailHog"] From fbcd89e8efb74327e886559ee1c859ae344c8bac Mon Sep 17 00:00:00 2001 From: Benoit Benedetti Date: Tue, 30 Dec 2014 22:18:40 +0100 Subject: [PATCH 2/2] Dockerfile with golang:1.4 --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d8aed28..2e56629 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ -# Base docker image -FROM golang:latest +FROM golang:1.4 RUN go get github.com/mailhog/MailHog