Charan5775 commited on
Commit
af73561
·
verified ·
1 Parent(s): 15def49

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -9
Dockerfile CHANGED
@@ -1,11 +1,10 @@
1
  # Use a base Python image
2
  FROM python:3.9-slim
3
 
4
- # Install curl and Node.js
5
  RUN apt-get update && \
6
  apt-get install -y curl git && \
7
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
8
- apt-get install -y nodejs
9
 
10
  # Install Python dependencies (Gradio)
11
  RUN pip install gradio
@@ -16,14 +15,14 @@ RUN git clone https://github.com/coleam00/bolt.new-any-llm /app
16
  # Set working directory to /app
17
  WORKDIR /app
18
 
19
- # Install Node.js dependencies
20
- RUN npm install
21
 
22
  # Build the Node.js app (if it's a buildable frontend, like React)
23
- RUN npm run build
24
 
25
- # Expose port
26
- EXPOSE 5173
27
 
28
  # Command to start the Node.js app
29
- CMD ["npm", "start"]
 
1
  # Use a base Python image
2
  FROM python:3.9-slim
3
 
4
+ # Install curl, git, and pnpm
5
  RUN apt-get update && \
6
  apt-get install -y curl git && \
7
+ curl -fsSL https://get.pnpm.io/v6.16.js | node - add --global pnpm
 
8
 
9
  # Install Python dependencies (Gradio)
10
  RUN pip install gradio
 
15
  # Set working directory to /app
16
  WORKDIR /app
17
 
18
+ # Install Node.js dependencies using pnpm
19
+ RUN pnpm install
20
 
21
  # Build the Node.js app (if it's a buildable frontend, like React)
22
+ RUN pnpm run build
23
 
24
+ # Expose port (adjust this if your app uses a different port)
25
+ EXPOSE 3000
26
 
27
  # Command to start the Node.js app
28
+ CMD ["pnpm", "start"]