1
0
Fork 0

use bulleye from builder image
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Massaki Archambault 2021-09-25 22:16:26 -04:00
parent ff8e8cc377
commit 5a7d704690
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
FROM golang:1.17-alpine as builder FROM golang:1.17.1-bullseye as builder
COPY . /app COPY . /app
WORKDIR /app WORKDIR /app
RUN apk add git make build-base \ RUN apt-get update \
&& apt-get install --yes git build-essential \
&& make dist && make dist
FROM gcr.io/distroless/base-debian10 FROM gcr.io/distroless/base-debian10

View File

@ -91,7 +91,7 @@ build: lint $(BIN)
.PHONY: dist .PHONY: dist
dist: $(TARGET_DIR) $(SRC) dist: $(TARGET_DIR) $(SRC)
$(GOBUILD) -o=$(BIN) -a -ldflags "-linkmode external -extldflags -static" $(GOBUILD) -o=$(BIN) -a -trimpath -ldflags="-extldflags=-static"
# docker: build the docker image # docker: build the docker image