diff --git a/Dockerfile b/Dockerfile index 8bd1a157..32148376 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,11 @@ RUN apk --no-cache add --virtual build-dependencies \ && export GOPATH=/root/gocode \ && go get github.com/mailhog/MailHog \ && mv /root/gocode/bin/MailHog /usr/local/bin \ - && rm -rf /root/gocode \ - && apk del --purge build-dependencies + && rm -rf /root/gocode +RUN apk --no-cache add --virtual build-dependencies \ + libcap \ + && setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/MailHog \ + && apk del --purge build-dependencies libcap # Add mailhog user/group with uid/gid 1000. # This is a workaround for boot2docker issue #581, see