Spaces:
Runtime error
Runtime error
| FROM node:22-alpine | |
| # Install build dependencies that some npm packages require | |
| RUN apk --no-cache add python3 make g++ linux-headers | |
| # Set the working directory | |
| WORKDIR /app | |
| # Install 9router globally via npm | |
| RUN npm install -g 9router | |
| # Configure default 9router environment variables | |
| ENV NODE_ENV=production | |
| ENV PORT=20128 | |
| ENV HOSTNAME=0.0.0.0 | |
| ENV DATA_DIR=/app/data | |
| # Expose the default 9router dashboard and API port | |
| EXPOSE 20128 | |
| # Execute the 9router CLI application on startup | |
| CMD ["9router"] | |