add make static build tags
This commit is contained in:
parent
f0ae9fd608
commit
f1da2662d4
@ -8,8 +8,8 @@ ENV GOPROXY ${GOPROXY:-direct}
|
|||||||
|
|
||||||
ARG GITEA_VERSION
|
ARG GITEA_VERSION
|
||||||
ARG TAGS="sqlite sqlite_unlock_notify"
|
ARG TAGS="sqlite sqlite_unlock_notify"
|
||||||
ENV TAGS "bindata timetzdata $TAGS"
|
ENV TAGS "bindata timetzdata $TAGS netgo osusergo"
|
||||||
ARG CGO_EXTRA_CFLAGS
|
ENV LDFLAGS '-linkmode external -extldflags "-static"'
|
||||||
|
|
||||||
#Build deps
|
#Build deps
|
||||||
RUN apk --no-cache add build-base git nodejs npm
|
RUN apk --no-cache add build-base git nodejs npm
|
||||||
|
Loading…
Reference in New Issue
Block a user