Commit graph

5 commits

Author SHA1 Message Date
Sebastian Tschan
12eb3dfb7d Optimise the Dockerfile for Docker Hub Automated Builds.
Installs ca-certificates, required for the "release message" feature.
With the current [mailhog/mailhog](https://hub.docker.com/r/mailhog/mailhog/)
docker image, releasing messages to an SMTP server via TLS fails:
> Failed to release message: x509: failed to load system roots and no roots
> provided

Removes any build dependencies after install, optimising docker image size.
The image size is about the same as the Rocker based build, but works with plain
Docker and can therefore be used via Docker Hub Automated Builds.

Runs with a non-privileged user account instead of as root, increasing security.
Assigning the user ID 1000 allows host volume mounts (e.g. for maildir storage)
to work seamlessly with docker-machine.

Installs MailHog in `/usr/local/bin`, which is in the system `PATH` and allows
to use a simplified entrypoint (`MailHog`).
2016-10-23 12:42:22 +02:00
Benoit Benedetti
fbcd89e8ef Dockerfile with golang:1.4 2014-12-30 22:18:40 +01:00
Benoit Benedetti
6229a120f8 Working Dockerfile
You can test it from the docker hub https://registry.hub.docker.com/u/humboldtux/mailhog/
2014-12-30 19:52:31 +01:00
Ian Kent
bb46bac58f Fix Dockerfile 2014-11-23 15:56:18 +00:00
Ian Kent
cc747ec325 Example Dockerfile 2014-10-29 17:01:13 +00:00