Sign inSign up

lwolf/golang-glide

By lwolf

•Updated over 9 years ago

Golang alpine image with glide installed used in the build system

Image
1

7.0K

lwolf/golang-glide repository overview

⁠golang-glide-builder

Pure golang alpine image with glide installed

⁠Usage

Dockerfile:

FROM lwolf/golang-glide-builder


# replace <YOUR-PACKAGE-NAME> with something like github.com/user/app
ENV APP_PATH=/go/src/<YOUR-PACKAGE-NAME>

RUN mkdir -p $APP_PATH
WORKDIR $APP_PATH

COPY glide.yaml glide.yaml
COPY glide.lock glide.lock

RUN glide install -v

VOLUME ["/build"]

ADD . $APP_PATH
CMD CGO_ENABLED=0 go build -o /build/app

Tag summary

Content type

Image

Digest

Size

88.6 MB

Last updated

over 9 years ago

docker pull lwolf/golang-glide