Compile app as static binary
This commit is contained in:
@@ -5,7 +5,7 @@ FROM golang:${GOLANG_VERSION} as build
|
|||||||
COPY . /src
|
COPY . /src
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
RUN go build ./cmd/github-release
|
RUN CGO_ENABLED=0 go build -tags netgo,osusergo ./cmd/github-release
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user