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:
authormhsanaei <ho3ein.sanaei@gmail.com>2025-01-27 03:13:12 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2025-01-27 03:13:12 +0300
commite95a748e773e113afc6206af167fe6c1d34b9228 (patch)
tree0794f11c4d447f40f8136c1ecd29cbba31974127 /Dockerfile
parent34e2d961f50b3cb0247a080f15fdcb409011e915 (diff)
docker
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 2d223181..36f5235c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,7 +15,7 @@ COPY . .
ENV CGO_ENABLED=1
ENV CGO_CFLAGS="-D_LARGEFILE64_SOURCE"
-RUN go build -o build/x-ui main.go
+RUN go build -ldflags "-w -s" -o build/x-ui main.go
RUN ./DockerInit.sh "$TARGETARCH"
# ========================================================