use bulleye from builder image
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
ff8e8cc377
commit
5a7d704690
|
@ -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
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in New Issue