This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- use multi-stage build: build the binary in a `alpine:golang3.11` image but use `busybox:stable` for the run time image and just pick the build artifacts ... this reduces the image size from 384mb -> 12.4mb - build with CGO_ENABLED=0 to avoid dependency to glibc: this makes it more compatible with different types of linux images - add EXPOSE statement to Dockerfile - add `USER=nobody` statement to avoid running as root within the container - remove `-it` option from README: this is only needed if you want to interactively use the container - use 0.0.0.0 as the default listing host ... otherwise requests from other hosts will not be responded to However: `sendmail` is missing from the container and therefore this will not run correctly. As I don't know whether it usually runs with sendmail I stopped at this point -- happy to support again
- Loading branch information