forked from TrueCloudLab/frostfs-http-gw
add more debug information to build
This commit is contained in:
parent
4715468f3a
commit
51574e8274
1 changed files with 4 additions and 3 deletions
|
@ -6,16 +6,17 @@ ARG REPO=github.com/nspcc-dev/neofs-gw
|
||||||
|
|
||||||
ENV GOGC off
|
ENV GOGC off
|
||||||
ENV CGO_ENABLED 0
|
ENV CGO_ENABLED 0
|
||||||
ENV LDFLAGS "-w -s -X main.Version=${VERSION}"
|
# add later -w -s
|
||||||
|
ENV LDFLAGS " -X main.Version=${VERSION} -compressdwarf=false"
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
COPY . /src
|
COPY . /src
|
||||||
|
|
||||||
RUN go build -v -mod=vendor -trimpath -ldflags "${LDFLAGS} -X main.Build=$(date -u +%s%N)" -o /go/bin/neofs-gw ./
|
RUN go build -v -mod=vendor -trimpath -gcflags=all="-N -l" -ldflags "${LDFLAGS} -X main.Build=$(date -u +%s%N)" -o /go/bin/neofs-gw ./
|
||||||
|
|
||||||
# Executable image
|
# Executable image
|
||||||
FROM scratch
|
FROM alpine
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue