hmarr/golang-runtime is a docker base image that makes it easy to dockerize standard golang applications that use godep for dependency management.
It can automatically bundle a golang application with its dependencies (managed via godep) and set the default entrypoint to the compiled binary with no additional Dockerfile instructions.
It is based on google/golang base image.
Create a Dockerfile in your golang application directory with the following content:
FROM google/golang-runtime
Build your container image by running the following command in your application directory:
docker build -t app .
The image assumes that your application:
main package8080.godir file containing the import path for your application if it vendors its dependenciesGodep directoryWhen building your application docker image, ONBUILD triggers fetch non-vendored dependencies of your application using godep get.
Content type
Image
Digest
sha256:ea4c7df2e…
Size
183.9 MB
Last updated
almost 11 years ago
docker pull hmarr/golang-runtime