Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -6,9 +6,12 @@ RUN apk add --no-cache git bash
|
|
| 6 |
# Set working directory
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
-
# Clone the repo
|
| 10 |
RUN git clone --depth=1 --branch stable https://github.com/stackblitz-labs/bolt.diy.git .
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# Install pnpm globally
|
| 13 |
RUN npm install -g pnpm
|
| 14 |
|
|
@@ -18,5 +21,5 @@ RUN pnpm install
|
|
| 18 |
# Expose port 7860
|
| 19 |
EXPOSE 7860
|
| 20 |
|
| 21 |
-
# Start the development server
|
| 22 |
CMD ["pnpm", "run", "dev", "--", "--port", "7860"]
|
|
|
|
| 6 |
# Set working directory
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
+
# Clone the repo
|
| 10 |
RUN git clone --depth=1 --branch stable https://github.com/stackblitz-labs/bolt.diy.git .
|
| 11 |
|
| 12 |
+
# Mark directory as safe for git
|
| 13 |
+
RUN git config --global --add safe.directory /app
|
| 14 |
+
|
| 15 |
# Install pnpm globally
|
| 16 |
RUN npm install -g pnpm
|
| 17 |
|
|
|
|
| 21 |
# Expose port 7860
|
| 22 |
EXPOSE 7860
|
| 23 |
|
| 24 |
+
# Start the development server
|
| 25 |
CMD ["pnpm", "run", "dev", "--", "--port", "7860"]
|