Enable Cgo again for use with embedded dbmate

This commit is contained in:
Jamie Curnow 2023-05-26 22:06:06 +10:00
parent e889714642
commit b4365f5c54
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E
3 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ ARG SENTRY_DSN
ENV BUILD_COMMIT="${BUILD_COMMIT:-dev}" \
BUILD_VERSION="${BUILD_VERSION:-0.0.0}" \
CGO_ENABLED=1 \
GOPRIVATE="${GOPRIVATE:-}" \
GOPROXY="${GOPROXY:-}" \
SENTRY_DSN="${SENTRY_DSN:-}"

View File

@ -11,6 +11,7 @@ ARG GOPRIVATE
ENV ACMESH_CONFIG_HOME=/data/.acme.sh/config \
ACMESH_HOME=/data/.acme.sh \
CERT_HOME=/data/.acme.sh/certs \
CGO_ENABLED=1 \
GOPROXY=$GOPROXY \
GOPRIVATE=$GOPRIVATE \
LE_CONFIG_HOME=/data/.acme.sh/config \

View File

@ -20,7 +20,7 @@ if [ "$BUILD_VERSION" = "" ]; then
BUILD_VERSION=$(cat .version)
fi
export CGO_ENABLED=0
export CGO_ENABLED=1
export GO111MODULE=on
echo -e "${BLUE} ${GREEN}build-backend:${RESET}"