mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-06-28 00:58:00 +02:00
Use build directive from makefile
This commit is contained in:
parent
830004735a
commit
fec2879ec0
2 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,7 @@ FROM golang:1.18 as build
|
||||||
WORKDIR /usr/src/wireproxy
|
WORKDIR /usr/src/wireproxy
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 go build ./cmd/wireproxy
|
RUN make
|
||||||
|
|
||||||
# Now copy it into our base image.
|
# Now copy it into our base image.
|
||||||
FROM gcr.io/distroless/static-debian11:nonroot
|
FROM gcr.io/distroless/static-debian11:nonroot
|
||||||
|
|
1
Makefile
1
Makefile
|
@ -1,4 +1,5 @@
|
||||||
export GO ?= go
|
export GO ?= go
|
||||||
|
export CGO_ENABLED = 0
|
||||||
|
|
||||||
TAG := $(shell git describe --always --tags $(git rev-list --tags --max-count=1) --match v*)
|
TAG := $(shell git describe --always --tags $(git rev-list --tags --max-count=1) --match v*)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue