Update Dockerfile
Browse files- Dockerfile +3 -7
Dockerfile
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
# Use Node.js LTS base image
|
| 2 |
FROM node:lts-alpine
|
| 3 |
|
| 4 |
# Install git and bash
|
|
@@ -7,7 +6,7 @@ RUN apk add --no-cache git bash
|
|
| 7 |
# Set working directory
|
| 8 |
WORKDIR /app
|
| 9 |
|
| 10 |
-
# Clone the repo (
|
| 11 |
RUN git clone --depth=1 --branch stable https://github.com/stackblitz-labs/bolt.diy.git .
|
| 12 |
|
| 13 |
# Install pnpm globally
|
|
@@ -16,11 +15,8 @@ RUN npm install -g pnpm
|
|
| 16 |
# Install dependencies
|
| 17 |
RUN pnpm install
|
| 18 |
|
| 19 |
-
# Build the project
|
| 20 |
-
RUN pnpm build
|
| 21 |
-
|
| 22 |
# Expose port 7860
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
-
# Start the
|
| 26 |
-
CMD ["pnpm", "run", "
|
|
|
|
|
|
|
| 1 |
FROM node:lts-alpine
|
| 2 |
|
| 3 |
# Install git and bash
|
|
|
|
| 6 |
# Set working directory
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
+
# Clone the repo (stable branch)
|
| 10 |
RUN git clone --depth=1 --branch stable https://github.com/stackblitz-labs/bolt.diy.git .
|
| 11 |
|
| 12 |
# Install pnpm globally
|
|
|
|
| 15 |
# Install dependencies
|
| 16 |
RUN pnpm install
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
# Expose port 7860
|
| 19 |
EXPOSE 7860
|
| 20 |
|
| 21 |
+
# Start the development server on port 7860
|
| 22 |
+
CMD ["pnpm", "run", "dev", "--", "--port", "7860"]
|