From a379d485f67686674800bf5337032a9a3bf33818 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 08:22:53 +0000 Subject: [PATCH] Fix: Correct Xray-core download URL and filename in Dockerfile.backend The previous attempt to download Xray-core resulted in a 404 error because the specified version/filename combination was incorrect for the amd64 architecture. This commit updates `Dockerfile.backend` to: - Use Xray-core version `v1.8.11`. - Use the filename `Xray-linux-64.zip` for downloading, which is the correct asset name for the linux-amd64 architecture for this version. - Ensure the extracted binary is still renamed to `xray-linux-${TARGETARCH}` (e.g., `xray-linux-amd64`) to match your application's expectations. This should resolve the Docker build failure caused by the inability to download the Xray-core binary. --- Dockerfile.backend | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile.backend b/Dockerfile.backend index 61c77e30..aa3a7735 100644 --- a/Dockerfile.backend +++ b/Dockerfile.backend @@ -23,13 +23,14 @@ FROM alpine:latest WORKDIR /app RUN mkdir -p /app/bin -ARG XRAY_VERSION=v1.8.10 +ARG XRAY_VERSION=v1.8.11 ARG TARGETARCH=amd64 -RUN wget -O /tmp/Xray-linux-${TARGETARCH}.zip https://github.com/XTLS/Xray-core/releases/download/${XRAY_VERSION}/Xray-linux-${TARGETARCH}.zip && \ - unzip /tmp/Xray-linux-${TARGETARCH}.zip -d /app/bin xray geoip.dat geosite.dat && \ +# Use Xray-linux-64.zip for amd64 architecture as per Xray release naming +RUN wget -O /tmp/Xray-linux-64.zip https://github.com/XTLS/Xray-core/releases/download/${XRAY_VERSION}/Xray-linux-64.zip && \ + unzip /tmp/Xray-linux-64.zip -d /app/bin xray geoip.dat geosite.dat && \ mv /app/bin/xray /app/bin/xray-linux-${TARGETARCH} && \ chmod +x /app/bin/xray-linux-${TARGETARCH} && \ - rm /tmp/Xray-linux-${TARGETARCH}.zip + rm /tmp/Xray-linux-64.zip # Copy the binary from the builder stage COPY --from=builder /app/x-ui /app/x-ui