Spaces:
Runtime error
Runtime error
File size: 451 Bytes
e92be04 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | FROM node:20-slim
# HF Spaces runs on port 7860
ENV PORT=7860
ENV NODE_ENV=production
ENV GUN_USE_PEERS=false
WORKDIR /app
# Copy everything (respect .dockerignore for size)
COPY . .
# Install dependencies
RUN npm install --legacy-peer-deps --omit=dev 2>&1 | tail -5
# Force got@11 (CJS compat)
RUN npm install got@11.8.6 --no-save 2>&1 | tail -2
EXPOSE 7860
CMD ["node", "--max-old-space-size=400", "--expose-gc", "packages/api/src/index.js"]
|