File size: 512 Bytes
c9503ba 3332ce4 53a1e42 c9503ba b93b980 53a1e42 0f3cbaf 3332ce4 53a1e42 9b2630f 3332ce4 53a1e42 b468eb8 3fbcc88 9b2630f b468eb8 3fbcc88 9b2630f 3268a20 3332ce4 9b2630f b223789 3332ce4 3268a20 b223789 b513d19 |
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 |
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"]
|