Spaces:
Running
Running
| FROM node:20-slim | |
| RUN apt-get update && apt-get install -y \ | |
| chromium \ | |
| chromium-sandbox \ | |
| fontconfig \ | |
| fonts-liberation \ | |
| curl \ | |
| wget \ | |
| ca-certificates \ | |
| --no-install-recommends \ | |
| && rm -rf /var/lib/apt/lists/* | |
| ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium | |
| ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true | |
| WORKDIR /app | |
| RUN mkdir -p /usr/share/fonts/truetype/apple && \ | |
| wget -q https://github.com/samuelngs/apple-emoji-ttf/releases/download/macos-26-20260219-2aa12422/AppleColorEmoji-Linux.ttf \ | |
| -O /usr/share/fonts/truetype/apple/AppleColorEmoji.ttf && \ | |
| fc-cache -fv | |
| COPY package*.json ./ | |
| RUN npm install --production | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["npm", "start"] |