Download Dockerfile from Celeskry/api: direct link, hf CLI and curl.
- Browser
- Download file 468 Bytes
-
https://huggingface.co/spaces/Celeskry/api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Celeskry/api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Celeskry/api/resolve/main/Dockerfile
468 Bytes
| FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| xvfb \ | |
| libgbm-dev \ | |
| libnss3 \ | |
| libasound2 \ | |
| fonts-liberation \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN playwright install chromium | |
| COPY . . | |
| CMD ["sh", "-c", "Xvfb :99 -screen 0 1920x1080x24 & export DISPLAY=:99 && uvicorn main:app --host 0.0.0.0 --port 7860"] |