Use build directive from makefile

This commit is contained in:
Wayback Archiver 2023-05-09 05:21:00 +00:00
parent 830004735a
commit fec2879ec0
No known key found for this signature in database
GPG key ID: 57D14486138C9377
2 changed files with 2 additions and 1 deletions

View file

@ -4,7 +4,7 @@ FROM golang:1.18 as build
WORKDIR /usr/src/wireproxy
COPY . .
RUN CGO_ENABLED=0 go build ./cmd/wireproxy
RUN make
# Now copy it into our base image.
FROM gcr.io/distroless/static-debian11:nonroot

View file

@ -1,4 +1,5 @@
export GO ?= go
export CGO_ENABLED = 0
TAG := $(shell git describe --always --tags $(git rev-list --tags --max-count=1) --match v*)