Initial commit: XHS crawler with dedup and content extraction
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
FROM mcr.microsoft.com/playwright/python:v1.57.0-jammy
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV TZ=Asia/Shanghai
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
RUN pip install --no-cache-dir -r /app/requirements.txt
|
||||
|
||||
# Playwright browsers are already included in base image
|
||||
COPY xhs_crawler_core.py /app/xhs_crawler_core.py
|
||||
COPY app /app/app
|
||||
COPY data /app/data
|
||||
|
||||
EXPOSE 8000
|
||||
CMD ["uvicorn", "app.server:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
Reference in New Issue
Block a user