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 01:39:33 +0300
committerHo3ein <ho3ein.sanaei@gmail.com>2023-05-08 09:34:47 +0300
commit15a97af2150ae5e3056e15f9b054ee36bba04558 (patch)
tree0c98df722950a80cd52ff484ed6744a0e2ad1313 /Dockerfile
parent20a55c086e6982401b1de74c75aa126c9f5bc048 (diff)
👷 Added Docker CI
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 9dd30715..f87e3ca2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,7 +15,7 @@ RUN go mod download
COPY . .
# Build the X-ui binary
-RUN CGO_ENABLED=1 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o xui-release-${TARGETARCH} -v main.go
+RUN CGO_ENABLED=1 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o xui-release-$TARGETARCH -v main.go
# Start a new stage using the base image
FROM ubuntu:20.04
@@ -26,7 +26,7 @@ ARG TARGETOS
WORKDIR /app
# Copy the X-ui binary and required files from the builder stage
-COPY --from=builder /app/xui-release-${TARGETARCH} /app/x-ui/xui-release
+COPY --from=builder /app/xui-release-$TARGETARCH /app/x-ui/xui-release
COPY x-ui.service /app/x-ui/x-ui.service
COPY x-ui.sh /app/x-ui/x-ui.sh
@@ -45,7 +45,7 @@ RUN wget https://github.com/mhsanaei/Xray-core/releases/latest/download/Xray-lin
&& wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat \
&& wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat \
&& wget https://github.com/bootmortis/iran-hosted-domains/releases/latest/download/iran.dat \
- && mv xray xray-linux-${TARGETARCH}
+ && mv xray xray-linux-$TARGETARCH
WORKDIR /app
RUN chmod +x /app/x-ui/x-ui.sh