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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -3
Dockerfile CHANGED
@@ -1,10 +1,16 @@
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
 
1
  # Use a base Python image
2
  FROM python:3.9-slim
3
 
4
+ # Install curl, git, and dependencies for Node.js
5
  RUN apt-get update && \
6
+ apt-get install -y curl git ca-certificates lsb-release
7
+
8
+ # Install Node.js from NodeSource (ensure it's available before installing pnpm)
9
+ RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
10
+ apt-get install -y nodejs
11
+
12
+ # Install pnpm globally
13
+ RUN curl -fsSL https://get.pnpm.io/v6.16.js | node - add --global pnpm
14
 
15
  # Install Python dependencies (Gradio)
16
  RUN pip install gradio