Merge branch 'master' into bot_manager
This commit is contained in:
commit
d10843ad47
10
Dockerfile
10
Dockerfile
@ -7,8 +7,6 @@ WORKDIR /app
|
|||||||
# 设置环境变量
|
# 设置环境变量
|
||||||
ENV PYTHONPATH=/app
|
ENV PYTHONPATH=/app
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
ENV PLAYWRIGHT_BROWSERS_PATH=/usr
|
|
||||||
ENV CHROME_PATH=/usr/bin/chromium
|
|
||||||
|
|
||||||
# 安装系统依赖
|
# 安装系统依赖
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
@ -34,9 +32,11 @@ ENV PATH="/root/.cargo/bin:$PATH"
|
|||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# 安装 Playwright (使用系统 chromium,无需额外下载)
|
# 安装 Playwright 并下载 Chromium
|
||||||
RUN pip install --no-cache-dir playwright
|
RUN pip install --no-cache-dir playwright && \
|
||||||
RUN npm install -g playwright
|
playwright install chromium
|
||||||
|
RUN npm install -g playwright && \
|
||||||
|
npx playwright install chromium
|
||||||
|
|
||||||
# 复制应用代码
|
# 复制应用代码
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
@ -7,8 +7,6 @@ WORKDIR /app
|
|||||||
# 设置环境变量
|
# 设置环境变量
|
||||||
ENV PYTHONPATH=/app
|
ENV PYTHONPATH=/app
|
||||||
ENV PYTHONUNBUFFERED=1
|
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 && \
|
RUN sed -i 's|http://deb.debian.org|http://mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources && \
|
||||||
@ -35,9 +33,11 @@ ENV PATH="/root/.cargo/bin:$PATH"
|
|||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
|
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
|
||||||
|
|
||||||
# 安装 Playwright (使用系统 chromium,无需额外下载)
|
# 安装 Playwright 并下载 Chromium
|
||||||
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ playwright
|
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ playwright && \
|
||||||
RUN npm install -g playwright
|
playwright install chromium
|
||||||
|
RUN npm install -g playwright && \
|
||||||
|
npx playwright install chromium
|
||||||
|
|
||||||
# 安装modelscope
|
# 安装modelscope
|
||||||
#RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ modelscope
|
#RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ modelscope
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user