Skip to content
Open
Changes from 1 commit
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
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ FROM golang:alpine

# Install MailHog:
RUN apk --no-cache add --virtual build-dependencies \
git \
git libcap \
&& mkdir -p /root/gocode \
&& 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
&& 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