Download Dockerfile from luoleyuan/XHS: direct link, hf CLI and curl.
- Browser
- Download file 804 Bytes
-
https://huggingface.co/spaces/luoleyuan/XHS/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/luoleyuan/XHS/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/luoleyuan/XHS/resolve/main/Dockerfile
804 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| ca-certificates \ | |
| gnupg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ | |
| && apt-get install -y --no-install-recommends nodejs \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt \ | |
| && playwright install chromium \ | |
| && playwright install-deps chromium | |
| COPY package.json . | |
| RUN npm install | |
| COPY . . | |
| # Build frontend | |
| RUN cd frontend && npm install && npm run build | |
| ENV PYTHONPATH=/app | |
| ENV MEDIACRAWLER_STORAGE_STATE_PATHS=/app/storage/state.json | |
| ENV PYTHONUNBUFFERED=1 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "service.app:app", "--host", "0.0.0.0", "--port", "7860"] | |