diff options
| author | itspooya <fallenangel201190@yahoo.com> | 2023-05-08 05:41:44 +0300 |
|---|---|---|
| committer | Ho3ein <ho3ein.sanaei@gmail.com> | 2023-05-08 09:34:47 +0300 |
| commit | 89b94c2c9083ef8c6c58af6909c503b078abaa43 (patch) | |
| tree | 81daa8e32c1e866c5687d78aa6d3d0a013a260b1 | |
| parent | 350743fea353855b0073561f4ea302139a85ff98 (diff) | |
Enable CGO
| -rw-r--r-- | Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,9 +16,9 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then apt update && apt install gcc-aarch64-l # Build the X-ui binary RUN if [ "$TARGETARCH" = "arm64" ]; then \ - TARGETARCH GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc go build -o xui-release -v main.go; \ + CGO_ENABLED=1 GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc go build -o xui-release -v main.go; \ elif [ "$TARGETARCH" = "amd64" ]; then \ - TARGETARCH GOOS=linux GOARCH=amd64 go build -o xui-release -v main.go; \ + CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o xui-release -v main.go; \ fi # Start a new stage using the base image |
