Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow MailHog to use privileged ports locally #329

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down