Spaces:
Running
Running
File size: 593 Bytes
8617367 7b384e1 44a8902 7b384e1 8617367 b8fedae 280d48a b8fedae 8617367 7b384e1 44a8902 7b384e1 44a8902 8617367 7b384e1 44a8902 7b384e1 44a8902 7b384e1 44a8902 8617367 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # 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"]
|