-
-
Save snmishra/bba7667b4e749d118e29532acdc26cab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1 as builder | |
# Install MailHog: | |
RUN apt install git \ | |
&& mkdir -p /root/gocode \ | |
&& export GOPATH=/root/gocode \ | |
&& go install github.com/mailhog/MailHog@latest | |
FROM gcr.io/distroless/base-debian11:nonroot | |
COPY --from=builder /root/gocode/bin/MailHog /usr/local/bin/ | |
USER nonroot | |
WORKDIR /home/nonroot | |
ENTRYPOINT ["MailHog"] | |
# Expose the SMTP and HTTP ports: | |
EXPOSE 1025 8025 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment