Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -10
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# Use
|
2 |
FROM node:18
|
3 |
|
4 |
# Set the working directory
|
@@ -7,14 +7,11 @@ WORKDIR /app
|
|
7 |
# Clone the repository
|
8 |
RUN git clone https://github.com/coleam00/bolt.new-any-llm.git /app
|
9 |
|
10 |
-
#
|
11 |
-
RUN
|
12 |
|
13 |
-
# Install
|
14 |
-
RUN
|
15 |
-
|
16 |
-
# Fix permission issues for wrangler tmp folder and application directory
|
17 |
-
RUN mkdir -p /app/.wrangler/tmp && chmod -R 777 /app && chmod -R 777 /app/.wrangler
|
18 |
|
19 |
# Build the application
|
20 |
RUN pnpm build
|
@@ -22,5 +19,5 @@ RUN pnpm build
|
|
22 |
# Expose the application port
|
23 |
EXPOSE 5173
|
24 |
|
25 |
-
#
|
26 |
-
CMD ["
|
|
|
1 |
+
# Use Node.js 18 base image
|
2 |
FROM node:18
|
3 |
|
4 |
# Set the working directory
|
|
|
7 |
# Clone the repository
|
8 |
RUN git clone https://github.com/coleam00/bolt.new-any-llm.git /app
|
9 |
|
10 |
+
# Install pnpm globally
|
11 |
+
RUN npm install -g pnpm
|
12 |
|
13 |
+
# Install dependencies
|
14 |
+
RUN pnpm install
|
|
|
|
|
|
|
15 |
|
16 |
# Build the application
|
17 |
RUN pnpm build
|
|
|
19 |
# Expose the application port
|
20 |
EXPOSE 5173
|
21 |
|
22 |
+
# Start the application
|
23 |
+
CMD ["pnpm", "start"]
|