replace screenshot pipeline and update admin
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,14 +1,18 @@
|
||||
# 使用国内镜像源加速
|
||||
FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy
|
||||
FROM python:3.10-slim-bullseye
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /app
|
||||
|
||||
# 设置环境变量
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
|
||||
ENV TZ=Asia/Shanghai
|
||||
|
||||
# 安装 wkhtmltopdf(包含 wkhtmltoimage)与中文字体
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends wkhtmltopdf fonts-noto-cjk && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 配置 pip 使用国内镜像源
|
||||
RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ && pip config set install.trusted-host mirrors.aliyun.com
|
||||
|
||||
@@ -22,10 +26,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY app.py .
|
||||
COPY database.py .
|
||||
COPY db_pool.py .
|
||||
COPY playwright_automation.py .
|
||||
COPY api_browser.py .
|
||||
COPY browser_pool_worker.py .
|
||||
COPY browser_installer.py .
|
||||
COPY password_utils.py .
|
||||
COPY crypto_utils.py .
|
||||
COPY task_checkpoint.py .
|
||||
|
||||
Reference in New Issue
Block a user