see Dockerfile on github
- uses golang
- fork from https://github.com/GoogleCloudPlatform/golang-docker
- does not use binary-distribution (not available for arm?)
- build from source
- uses resin/rpi-raspbian:wheezy as docker base image
- build on HypriotOS
- produced on a Raspberry PI 2 (quadcore, 900Mhz, armv7l)
It can automatically bundle a golang application with its dependencies 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:
Build your container image by running the following command in your application directory:
docker build -t app .
The image assumes that your application:
- has a
- listens on port
- may have a
.godirfile containing the import path for your application if it vendors its dependencies
When building your application docker image,
ONBUILD triggers fetch non-vendored dependencies of your application using