Spaces:
Sleeping
Sleeping
| # Use a base Python image | |
| FROM python:3.9-slim | |
| # Install curl, git, and additional dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y curl git ca-certificates lsb-release build-essential libtool libssl-dev zlib1g-dev | |
| # Install Node.js v20.x (ensure compatibility with pnpm and other tools) | |
| RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ | |
| apt-get install -y nodejs | |
| # Install pnpm globally | |
| RUN npm install -g pnpm | |
| # Install Python dependencies (Gradio) | |
| RUN pip install gradio | |
| # Clone the GitHub repository | |
| RUN git clone https://github.com/coleam00/bolt.new-any-llm /app | |
| # Set working directory to /app | |
| WORKDIR /app | |
| # Install Node.js dependencies using pnpm | |
| RUN pnpm install | |
| # Build the Node.js app | |
| RUN pnpm run build | |
| # Expose port (adjust if necessary) | |
| EXPOSE 3000 | |
| # Command to start the Node.js app | |
| CMD ["pnpm", "start"] | |