Commit graph

8 commits

Author SHA1 Message Date
Krista LaFentres (she/her)
6fcf01a4b0
Update Dockerfile to go1.18 syntax
As of 1.18, `go get <package>` no longer builds executables. `go install` should be used to install an executable instead.
See the deprecation message for more information: https://go.dev/doc/go-get-install-deprecation

Pinning to a specific go Docker image will help keep things from breaking unexpectedly in the future
2022-03-17 14:15:45 -05:00
Marc Deop
9c830be100
feat: use multistage build to minimize container size 2020-09-30 16:49:03 +02:00
J0WI
2489e91c50 Use official golang as base container 2018-01-25 23:45:20 +01:00
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