WARP-Clash-API/Dockerfile.armhf
YaoYinYing fb338d8afd dockerfile for armhf
For local build, use proxy as environment variable passing:
`docker build --build-arg http_proxy='http://localhost:7890' --build-arg https_proxy='http://localhost:7890' --build-arg all_proxy='socks5://localhost:7890'  -f Dockerfile.armhf -t $image_id .`

Example image: `https://hub.docker.com/r/yaoyinying/warp-clash-api-armhf`
IP optimizing is not work due to the lack of build of `/warp-yxip` tool.

see here: `https://gitlab.com/Misaka-blog/warp-script/-/tree/main/files/warp-yxip?ref_type=heads`
2024-03-15 10:46:08 +08:00

25 lines
690 B
Docker

# Use an official Python runtime as a parent image
FROM python:3.11-slim
WORKDIR /app
# Install Python dependencies
COPY requirements.txt ./
# Install Python, pip, necessary build dependencies,in one layer
RUN apt-get update && \
apt-get install -y libffi-dev libssl-dev build-essential && \
printf "[global]\nextra-index-url=https://www.piwheels.org/simple\n" > /etc/pip.conf && \
pip3 install --no-cache-dir -r requirements.txt && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Copy the rest of the code
COPY . .
RUN chmod +x ./scripts/*.sh
# Set environment variables
ENV RUN_IN_DOCKER=true
CMD ["/bin/sh", "./scripts/run.sh"]