api-server / Dockerfile
XWX-AI's picture
refactor: 遥测日志改为 metadata 透传 + 图表渲染统一 Puppeteer + Debian Bookworm
e831a9b
Raw
History Blame Contribute Delete
619 Bytes
# Use Node.js 20 on Debian Bookworm (Chromium 149, fixes SVG context-stroke support)
FROM node:20-bookworm-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"]