Sign inSign up

mdrolc/go-static

By mdrolc

•Updated over 10 years ago

Includes everything you need to build statically linked Go apps

Image
0

999

mdrolc/go-static repository overview

⁠Docker images

⁠Android

⁠Go-static

Includes everything you need to build statically linked Go apps

Example:

FROM mdrolc/go-static:latest
ENV APP_DIR $GOPATH/src/dev.drola.si/callwhisper/server
ENTRYPOINT ["/opt/app/server"]
ADD . $APP_DIR
RUN mkdir -p /opt/app && \
	cd $APP_DIR &&\
	godep get && \
	CGO_ENABLED=0 go build -o /opt/app/server -ldflags '-d -w -s'

Tag summary

Content type

Image

Digest

Size

118.2 MB

Last updated

over 10 years ago

docker pull mdrolc/go-static