Includes everything you need to build statically linked Go apps
987
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'
Content type
Image
Digest
Size
118.2 MB
Last updated
about 10 years ago
docker pull mdrolc/go-static