hmtxj
chore: touch all files to force full upload timestamp update
74da24a
FROM python:3.11-slim-bookworm
# 安装系统依赖
RUN apt-get update && apt-get install -y \
wget \
curl \
gnupg \
unzip \
xvfb \
libnss3 \
libxss1 \
libasound2 \
libatk-bridge2.0-0 \
libgtk-3-0 \
libgbm1 \
fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
# 安装 Chrome
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update \
&& apt-get install -y google-chrome-stable \
&& rm -rf /var/lib/apt/lists/*
# 安装 Clash (mihomo)
RUN wget -q https://github.com/MetaCubeX/mihomo/releases/download/v1.18.10/mihomo-linux-amd64-v1.18.10.gz \
&& gunzip mihomo-linux-amd64-v1.18.10.gz \
&& mv mihomo-linux-amd64-v1.18.10 /usr/local/bin/clash \
&& chmod +x /usr/local/bin/clash
# 设置工作目录
WORKDIR /app
# 复制项目文件
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY *.py .
COPY start.sh .
RUN chmod +x start.sh
# 暴露端口(Gradio 使用 7860)
EXPOSE 7860
# 启动脚本
CMD ["./start.sh"]
# Force Update 01/20/2026 15:30:13