api-server / Dockerfile
XWX-AI's picture
feat: add widget renderer (chart.js, mermaid) and bump to v2.0.0
44a8902
raw
history blame contribute delete
593 Bytes
# 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"]