Skip to content
Permalink
Browse files

contrib: update Dockerfile tp use go modules

Build binary with -trimpath.
  • Loading branch information
narqo committed Mar 5, 2020
1 parent 9a1d6ec commit a4597698a42b55f00657b304e6dd42859d15cd2e
Showing with 4 additions and 2 deletions.
  1. +1 −0 .dockerignore
  2. +2 −0 Makefile
  3. +1 −2 contrib/docker/Dockerfile
@@ -1 +1,2 @@
/BUILD
/data
@@ -13,6 +13,8 @@ ifndef VERSION
VERSION := git-$(GITSHA)
endif

GOFLAGS += -trimpath

LDFLAGS += -X $(PKG)/version.version=$(VERSION)
LDFLAGS += -X $(PKG)/version.commit=$(GITSHA)
LDFLAGS += -X $(PKG)/version.buildTime=$(BUILDTIME)
@@ -1,8 +1,7 @@
FROM golang:1.14.0-alpine3.11 as builder

RUN apk add --update --no-cache make
RUN apk add --update --no-cache build-base

env GO111MODULE=off
ARG VERSION
ARG GITSHA

0 comments on commit a459769

Please sign in to comment.
You can’t perform that action at this time.