Spaces:
Sleeping
Sleeping
Download Dockerfile from MistLiquit/pdf-api: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/spaces/MistLiquit/pdf-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MistLiquit/pdf-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MistLiquit/pdf-api/resolve/main/Dockerfile
425 Bytes
| # Base image ships Chromium matching Playwright 1.60.0 (keep both in sync). | |
| FROM mcr.microsoft.com/playwright:v1.60.0-jammy | |
| WORKDIR /app | |
| COPY package.json ./ | |
| RUN npm install --omit=dev | |
| COPY . . | |
| # HF Spaces runs the container as UID 1000 and routes traffic to app_port (7860); | |
| # HOME must be writable for Chromium. (On Render, PORT is injected and overrides this.) | |
| ENV HOME=/tmp | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["npm", "start"] | |