Compare commits

..

No commits in common. "d10843ad47ef9f9bb47d6de9df4e7e894443ee91" and "c050916f8d709a29313749b4161a3ca3240e3b30" have entirely different histories.

2 changed files with 10 additions and 10 deletions

View File

@ -7,6 +7,8 @@ WORKDIR /app
# 设置环境变量
ENV PYTHONPATH=/app
ENV PYTHONUNBUFFERED=1
ENV PLAYWRIGHT_BROWSERS_PATH=/usr
ENV CHROME_PATH=/usr/bin/chromium
# 安装系统依赖
RUN apt-get update && apt-get install -y \
@ -32,11 +34,9 @@ ENV PATH="/root/.cargo/bin:$PATH"
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 安装 Playwright 并下载 Chromium
RUN pip install --no-cache-dir playwright && \
playwright install chromium
RUN npm install -g playwright && \
npx playwright install chromium
# 安装 Playwright (使用系统 chromium无需额外下载)
RUN pip install --no-cache-dir playwright
RUN npm install -g playwright
# 复制应用代码
COPY . .

View File

@ -7,6 +7,8 @@ WORKDIR /app
# 设置环境变量
ENV PYTHONPATH=/app
ENV PYTHONUNBUFFERED=1
ENV PLAYWRIGHT_BROWSERS_PATH=/usr
ENV CHROME_PATH=/usr/bin/chromium
# 安装系统依赖
RUN sed -i 's|http://deb.debian.org|http://mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources && \
@ -33,11 +35,9 @@ ENV PATH="/root/.cargo/bin:$PATH"
COPY requirements.txt .
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
# 安装 Playwright 并下载 Chromium
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ playwright && \
playwright install chromium
RUN npm install -g playwright && \
npx playwright install chromium
# 安装 Playwright (使用系统 chromium无需额外下载)
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ playwright
RUN npm install -g playwright
# 安装modelscope
#RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ modelscope