/alpine-golang-buildimage

Golang docker buildimage using alpine linux (intended for multistage builds)

Primary LanguageDockerfileMIT LicenseMIT

alpine-golang-buildimage

This repository contains the sources for the following docker base images:

  • [lacion/alpine-golang-buildimage]

Usage

This Image is intedend to be used in multi stage docker builds and is not for final or production use you can find more info about multistage build in this blog post

FROM lacion/alpine-golang-buildimage

ADD . /go/src/github.com/lacion/test
WORKDIR /go/src/github.com/lacion/test

RUN go build *.go

Developing and testing

# Pull image
git clone ssh://git@github.com/lacion/alpine-golang-buildimage.git
cd alpine-golang-buildimage

# hack hack hack

# Build
make build

# Test