Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoritspooya <fallenangel201190@yahoo.com>2023-05-08 05:39:26 +0300
committerHo3ein <ho3ein.sanaei@gmail.com>2023-05-08 09:34:47 +0300
commit350743fea353855b0073561f4ea302139a85ff98 (patch)
tree0f5544007577d5f1171a9726341e7e9d5371751e /Dockerfile
parent8011d0b6c6fb4bf4e690ac06d9689e7386195d91 (diff)
Enable CGO
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index c311ca8b..b82a0f92 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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 \
- GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc go build -o xui-release -v main.go; \
+ TARGETARCH GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc go build -o xui-release -v main.go; \
elif [ "$TARGETARCH" = "amd64" ]; then \
- GOOS=linux GOARCH=amd64 go build -o xui-release -v main.go; \
+ TARGETARCH GOOS=linux GOARCH=amd64 go build -o xui-release -v main.go; \
fi
# Start a new stage using the base image