# Use Node 20 FROM node:20-slim # Install git and pnpm RUN apt-get update && apt-get install -y git && \ npm install -g pnpm && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app RUN corepack enable # Configure pnpm global directory ENV PNPM_HOME=/pnpm ENV PATH=$PNPM_HOME:$PATH # Clone the repository RUN git clone https://github.com/NitinBot001/bolt.diy_V2.0.git . # Install dependencies RUN pnpm install # Build the project first (important for Remix) RUN pnpm run build # Expose port 7860 (Hugging Face Spaces default) EXPOSE 8788 # Set host and port for Hugging Face Spaces ENV HOST=localhost ENV PORT=8788 # Start the production server instead of dev CMD ["pnpm", "run", "start"]