Supported tags and respective Dockerfile links
What is heroku-gb-golang-docker?
An docker automated build image based on golang and gb.
How to use this image
Start a Go instance in your app
The most straightforward way to use this image is to use a Go container as both the build and runtime environment. In your Dockerfile, writing something along the lines of the following will compile and run your project:
This image includes multiple ONBUILD triggers which should cover most applications. The build will
COPY . /usr/src/app and
RUN gb build all.
This image also includes the
CMD ["app"] instruction which is the default command when running the image without arguments.
You can then build and run the Docker image:
docker build -t my-golang-app . docker run -it --rm --name my-running-app my-golang-app