Download Dockerfile from ilhamdev/quote-api: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/spaces/ilhamdev/quote-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ilhamdev/quote-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ilhamdev/quote-api/resolve/main/Dockerfile
654 Bytes
| FROM oven/bun:1 | |
| WORKDIR /app | |
| # Install system dependencies for canvas, fonts, and graphics | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| libcairo2-dev \ | |
| libpango1.0-dev \ | |
| libjpeg-dev \ | |
| libgif-dev \ | |
| librsvg2-dev \ | |
| fonts-noto \ | |
| fonts-noto-cjk \ | |
| fonts-noto-color-emoji \ | |
| fontconfig \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY package.json bun.lock* ./ | |
| RUN bun install --production | |
| COPY . . | |
| # Set permissions for user 1000 (standard in Hugging Face Spaces) | |
| RUN chown -R 1000:1000 /app | |
| USER 1000 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["bun", "start"] |