diff --git a/docker/Dockerfile b/docker/Dockerfile index 5c685e7..bc77cff 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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:-}" diff --git a/docker/dev/Dockerfile b/docker/dev/Dockerfile index 970d86f..e374073 100644 --- a/docker/dev/Dockerfile +++ b/docker/dev/Dockerfile @@ -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 \ diff --git a/scripts/ci/build-backend b/scripts/ci/build-backend index a8a0349..a4a4b8c 100755 --- a/scripts/ci/build-backend +++ b/scripts/ci/build-backend @@ -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}"