Spaces:
Running
Running
| # Updated Dockerfile for bolt.diy - runs the actual dynamic app | |
| FROM --platform=linux/amd64 node:20.18.0 | |
| WORKDIR /app | |
| # Install pnpm | |
| RUN corepack enable pnpm | |
| # Copy package files | |
| COPY package.json pnpm-lock.yaml ./ | |
| # Install all dependencies (for dev/prod) | |
| RUN pnpm install | |
| # Copy the rest of the application | |
| COPY . . | |
| # Set production environment | |
| ENV NODE_ENV=production | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Start the bolt.diy app with correct script (check package.json for exact script) | |
| CMD ["pnpm", "run", "dev", "--host", "0.0.0.0", "--port", "7860"] # अगर 'dev' script नहीं है, तो 'start' use करें | |