mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-08-21 14:37:16 +00:00
Xray init support
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -15,12 +15,22 @@ ENV BRANCH_NAME=${BRANCH_NAME}
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies first (this layer will be cached)
|
||||
RUN apk update && apk add git
|
||||
RUN apk update && apk add git curl unzip
|
||||
|
||||
# Copy and install Python dependencies (this layer will be cached when requirements.txt doesn't change)
|
||||
COPY ./requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Install Xray-core
|
||||
RUN XRAY_VERSION=$(curl -s https://api.github.com/repos/XTLS/Xray-core/releases/latest | sed -n 's/.*"tag_name": "\([^"]*\)".*/\1/p') && \
|
||||
curl -L -o /tmp/xray.zip "https://github.com/XTLS/Xray-core/releases/download/${XRAY_VERSION}/Xray-linux-64.zip" && \
|
||||
cd /tmp && unzip xray.zip && \
|
||||
ls -la /tmp/ && \
|
||||
find /tmp -name "xray" -type f && \
|
||||
cp xray /usr/local/bin/xray && \
|
||||
chmod +x /usr/local/bin/xray && \
|
||||
rm -rf /tmp/xray.zip /tmp/xray
|
||||
|
||||
# Copy the rest of the application code (this layer will change frequently)
|
||||
COPY . .
|
||||
|
||||
|
Reference in New Issue
Block a user