koyeung / docker-golang

Create golang docker image based on Alpine Linux/armhf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-golang

Run golang on armhf/alpine. 1.6 is Based on docker-library/golang. alpine-* are simple wrapping of go bundled with the alpine OS.

Setup docker image

Method 1: Building

Copy the sources to your docker host and build the container:

# cd 1.6/alpine
# GOLANG_VERSION=1.6.4
# docker build --rm -t <username>/armhf-golang:${GOLANG_VERSION} .
# cd ../onbuild
# docker build --rm -t <username>/armhf-golang:${GOLANG_VERSION}-onbuild .

Method 2: Pull from Docker Hub

Get it from Docker Hub,

# GOLANG_VERSION=1.6.4
# docker pull docker.io/<username>/armhf-golang:${GOLANG_VERSION}
# docker pull docker.io/<username>/armhf-golang:${GOLANG_VERSION}-onbuild

About

Create golang docker image based on Alpine Linux/armhf

License:Apache License 2.0


Languages

Language:Shell 100.0%