try1 / Dockerfile
trytax's picture
Upload 5 files
d12c7eb verified
raw
history blame contribute delete
333 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 安装 Playwright 系统依赖和浏览器
RUN playwright install-deps chromium && playwright install chromium
COPY app.py register.py .
RUN mkdir -p /app/tokens
EXPOSE 7860
CMD ["python", "app.py"]