RandAI / Dockerfile
mfoud444's picture
Update Dockerfile
b513d19 verified
raw
history blame contribute delete
512 Bytes
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"]