FROM node:20 # Install system dependencies RUN apt-get update && apt-get install -y git bash # Set the working directory WORKDIR /app # Clone the project RUN git clone https://github.com/mfoud444/bolt.diy.rand.git . # Fix permissions RUN chown -R node:node /app # Switch to non-root user USER node # Install dependencies RUN npx --yes pnpm install # Build the app RUN npx --yes pnpm build # Expose correct port EXPOSE 7860 # Run the app (now respects 0.0.0.0:7860) CMD ["npx", "--yes", "pnpm", "start"]