add make static build tags

This commit is contained in:
James 2020-12-28 17:09:34 +00:00
parent f0ae9fd608
commit f1da2662d4

View File

@ -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