Spaces:
Runtime error
Runtime error
File size: 745 Bytes
fb6937d 567773b c31a175 f9addd4 567773b f9addd4 567773b f9addd4 567773b f9addd4 1cd7554 82863c2 9f600d3 5d1a9b2 5fcd988 7639f79 0f00101 feb2f04 20aab72 fb6937d 20aab72 fb6937d b1643e0 47cb829 fb6937d b1643e0 47cb829 fb6937d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# 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"] |