Update Dockerfile
Browse files- Dockerfile +2 -8
Dockerfile
CHANGED
|
@@ -1,21 +1,15 @@
|
|
| 1 |
-
FROM node:
|
| 2 |
|
| 3 |
-
|
| 4 |
-
RUN apk add --no-cache git bash
|
| 5 |
|
| 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 |
-
# Change ownership of /app to the default non-root user "node"
|
| 13 |
RUN chown -R node:node /app
|
| 14 |
|
| 15 |
-
# Switch to the non-root user
|
| 16 |
USER node
|
| 17 |
|
| 18 |
-
# Use npx to install dependencies and run dev server
|
| 19 |
RUN npx --yes pnpm install
|
| 20 |
|
| 21 |
EXPOSE 7860
|
|
|
|
| 1 |
+
FROM node:20
|
| 2 |
|
| 3 |
+
RUN apt-get update && apt-get install -y git bash
|
|
|
|
| 4 |
|
|
|
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
| 7 |
RUN git clone --depth=1 --branch stable https://github.com/stackblitz-labs/bolt.diy.git .
|
| 8 |
|
|
|
|
| 9 |
RUN chown -R node:node /app
|
| 10 |
|
|
|
|
| 11 |
USER node
|
| 12 |
|
|
|
|
| 13 |
RUN npx --yes pnpm install
|
| 14 |
|
| 15 |
EXPOSE 7860
|