Download Dockerfile from LokeshEka/chart: direct link, hf CLI and curl.
- Browser
- Download file 348 Bytes
-
https://huggingface.co/spaces/LokeshEka/chart/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/LokeshEka/chart/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/LokeshEka/chart/resolve/main/Dockerfile
348 Bytes
| FROM node:20 | |
| WORKDIR /app | |
| # Install system dependencies if needed (e.g., for canvas) | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| libcairo2-dev \ | |
| libpango1.0-dev \ | |
| libjpeg-dev \ | |
| libgif-dev \ | |
| librsvg2-dev | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["node", "server.js"] |