Spaces:
Running
Running
| # Use Node.js 20 on Debian Bullseye (Stable for Puppeteer) | |
| FROM node:20-bullseye-slim | |
| # Install Chrome Dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| chromium \ | |
| fonts-noto-cjk \ | |
| fonts-noto-core \ | |
| fonts-noto-color-emoji \ | |
| libxss1 \ | |
| --no-install-recommends \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Install Node.js Dependencies | |
| COPY package.json . | |
| RUN npm install | |
| # Copy Application Code (including templates/) | |
| COPY . . | |
| # Expose Port (Hugging Face expects 7860) | |
| EXPOSE 7860 | |
| # Run the Application | |
| CMD ["node", "server.js"] | |