Spaces:
Runtime error
Runtime error
Download Dockerfile from Brozy123/LineUp-Bot: direct link, hf CLI and curl.
- Browser
- Download file 668 Bytes
-
https://huggingface.co/spaces/Brozy123/LineUp-Bot/resolve/refs%2Fpr%2F1/Dockerfile
- Command line
-
hf download hf://spaces/Brozy123/LineUp-Bot@refs/pr/1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Brozy123/LineUp-Bot/resolve/refs%2Fpr%2F1/Dockerfile
668 Bytes
| FROM node:20 | |
| # Install native dependencies required by @napi-rs/canvas for image rendering | |
| USER root | |
| RUN apt-get update && apt-get install -y \ | |
| libfontconfig1 \ | |
| libfreetype6 \ | |
| libpango1.0-0 \ | |
| libcairo2 \ | |
| libjpeg62-turbo \ | |
| libpng16-16 \ | |
| libgif7 \ | |
| librsvg2-2 \ | |
| fonts-dejavu-core \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # The node image already has a user 'node' with UID 1000 | |
| USER node | |
| WORKDIR /home/node/app | |
| # Copy only package.json (NOT lock file) to force fresh platform-native install | |
| COPY --chown=node package.json ./ | |
| RUN npm install | |
| COPY --chown=node . . | |
| ENV PORT=7860 | |
| CMD ["node", "--dns-result-order=ipv4first", "index.js"] | |